bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22032: 24.3; VC doesn't handle hg hidden revisions


From: Glenn Hutchings
Subject: bug#22032: 24.3; VC doesn't handle hg hidden revisions
Date: Tue, 22 Dec 2015 20:17:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 12/18/15 05:02, Dmitry Gutov wrote:
On 12/16/2015 05:02 AM, Andy Moreton wrote:

If there's a direct counterpart to 'git rev-parse 59951^', it would be handy
here.

You mean like the "hg id" line in the example above ?

Um, yes. Thanks for the explanation, I've pushed the new definition of vc-hg-previous-revision that uses 'hg id -n -r 123^' to emacs-25.

It seems to work fine, if a little surprising for merge commits when vc-hg-log-graph is nil (which it is by default). Also, calling Hg is not free, and adds ~120 ms on my machine.

Glenn, could you if it solves the hidden revision problem as well?

Yes, it does. I've created a test script which recreates the problem (and solution) quite nicely. Attached is the script, and its output.

Glenn

Attachment: script.sh
Description: application/shellscript

Attachment: script.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]