* bug#15698: Show commit revision
@ 2013-10-24 8:18 Paul Pogonyshev
2021-01-23 22:26 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Paul Pogonyshev @ 2013-10-24 8:18 UTC (permalink / raw)
To: 15698
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 701 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#15698: Show commit revision
2013-10-24 8:18 bug#15698: Show commit revision Paul Pogonyshev
@ 2021-01-23 22:26 ` Lars Ingebrigtsen
2021-01-24 0:10 ` Dmitry Gutov
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-23 22:26 UTC (permalink / raw)
To: Paul Pogonyshev; +Cc: 15698, Dmitry Gutov
Paul Pogonyshev <pogonyshev@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#15698: Show commit revision
2021-01-23 22:26 ` Lars Ingebrigtsen
@ 2021-01-24 0:10 ` Dmitry Gutov
2021-01-25 23:56 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2021-01-24 0:10 UTC (permalink / raw)
To: Lars Ingebrigtsen, Paul Pogonyshev; +Cc: 15698
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#15698: Show commit revision
2021-01-24 0:10 ` Dmitry Gutov
@ 2021-01-25 23:56 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-25 23:56 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 15698, Paul Pogonyshev
Dmitry Gutov <dgutov@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-25 23:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24 8:18 bug#15698: Show commit revision Paul Pogonyshev
2021-01-23 22:26 ` Lars Ingebrigtsen
2021-01-24 0:10 ` Dmitry Gutov
2021-01-25 23:56 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.