GNU bug report logs - #15698
Show commit revision

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Thu, 24 Oct 2013 08:20:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 15698 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15698; Package emacs. (Thu, 24 Oct 2013 08:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Pogonyshev <pogonyshev <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 24 Oct 2013 08:20:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Show commit revision
Date: Thu, 24 Oct 2013 10:18:52 +0200
[Message part 1 (text/plain, inline)]
Minor feature request. When committing from VC directory buffer, it would
be useful to see the exact revision number, because I usually need it for
reporting. Currently my workflow is to commit => immediately open log
buffer to see revision number.

I'd suggest amending message "Checking in /home/user/dir...done" message as
something like "Checking in /home/user/dir...done as revision 1234".

Alternatively, just have VC directory buffer always show the last revision
(but this can be problematic/confusing for SVN at least, e.g. my last
commit was 7892, yet 'svn info' shows 7871).

Paul
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15698; Package emacs. (Sat, 23 Jan 2021 22:27:01 GMT) Full text and rfc822 format available.

Message #8 received at 15698 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: 15698 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#15698: Show commit revision
Date: Sat, 23 Jan 2021 23:26:26 +0100
Paul Pogonyshev <pogonyshev <at> gmail.com> writes:

> Minor feature request. When committing from VC directory buffer, it
> would be useful to see the exact revision number, because I usually
> need it for reporting.  Currently my workflow is to commit =>
> immediately open log buffer to see revision number.
>
> I'd suggest amending message "Checking in /home/user/dir...done" message as
> something like "Checking in /home/user/dir...done as revision 1234".

(I'm going through old bug reports that unfortunately got no response at
the time.)

I'm not sure this would be generally useful -- particularly with VCs
like git, where the revision string is really long, which means that you
can't just type it from memory. 

> Alternatively, just have VC directory buffer always show the last
> revision (but this can be problematic/confusing for SVN at least,
> e.g. my last commit was 7892, yet 'svn info' shows 7871).

This could perhaps be useful, though?  That is, having a line in the
-dir-extra-headers section saying what the current revision is?  I've
added Dmitry to the CCs; perhaps he's got an opinion here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15698; Package emacs. (Sun, 24 Jan 2021 00:11:01 GMT) Full text and rfc822 format available.

Message #11 received at 15698 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: 15698 <at> debbugs.gnu.org
Subject: Re: bug#15698: Show commit revision
Date: Sun, 24 Jan 2021 02:10:25 +0200
On 24.01.2021 00:26, Lars Ingebrigtsen wrote:
>> Minor feature request. When committing from VC directory buffer, it
>> would be useful to see the exact revision number, because I usually
>> need it for reporting.  Currently my workflow is to commit =>
>> immediately open log buffer to see revision number.
>>
>> I'd suggest amending message "Checking in /home/user/dir...done" message as
>> something like "Checking in /home/user/dir...done as revision 1234".
> (I'm going through old bug reports that unfortunately got no response at
> the time.)
> 
> I'm not sure this would be generally useful -- particularly with VCs
> like git, where the revision string is really long, which means that you
> can't just type it from memory.

That sounds like a bit of a pain to implement, to be honest. If we 
wanted to show the revision at the end, and implement it in some 
backend-agnostic way, we'd have to add some new action, or an argument 
to vc-working-revision (like short-revision)... and implement that for 
some backends.

Further, while I also often use the resulting revision string, it really 
depends on whether I end up having to rebase before pushing, and that 
changes the revision.

>> Alternatively, just have VC directory buffer always show the last
>> revision (but this can be problematic/confusing for SVN at least,
>> e.g. my last commit was 7892, yet 'svn info' shows 7871).
> This could perhaps be useful, though?  That is, having a line in the
> -dir-extra-headers section saying what the current revision is?  I've
> added Dmitry to the CCs; perhaps he's got an opinion here.

This should be relatively easy to do, adding some text in each 
individual backends' function vc-XYZ-dir-extra-headers. Less 
indirection, too.

vc-git could show the short revision after the branch name, for example.

vc-svn could just add a new "extra header", I guess. Looks like its 
current list is much shorter.

I don't know what's the deal with SVN's revisions, though.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15698; Package emacs. (Mon, 25 Jan 2021 23:57:01 GMT) Full text and rfc822 format available.

Message #14 received at 15698 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 15698 <at> debbugs.gnu.org, Paul Pogonyshev <pogonyshev <at> gmail.com>
Subject: Re: bug#15698: Show commit revision
Date: Tue, 26 Jan 2021 00:56:12 +0100
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> This should be relatively easy to do, adding some text in each
> individual backends' function vc-XYZ-dir-extra-headers. Less
> indirection, too.
>
> vc-git could show the short revision after the branch name, for example.

Yup; I think that sounds like useful functionality.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.