From: Glenn Hutchings <zondo42@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>,
Andy Moreton <andrewjmoreton@gmail.com>,
22032@debbugs.gnu.org
Subject: bug#22032: 24.3; VC doesn't handle hg hidden revisions
Date: Tue, 22 Dec 2015 20:17:09 +0000 [thread overview]
Message-ID: <5679AFC5.1060109@gmail.com> (raw)
In-Reply-To: <56739376.30105@yandex.ru>
[-- Attachment #1: Type: text/plain, Size: 797 bytes --]
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 #2: script.sh --]
[-- Type: application/x-shellscript, Size: 1178 bytes --]
[-- Attachment #3: script.txt --]
[-- Type: text/plain, Size: 1621 bytes --]
+ repo=repo
+ file=repo/readme.txt
+ hg=hg -R repo
+ rm -rf repo
+ hg init repo
+ cat
+ cat
+ hg -R repo add repo/readme.txt
+ hg -R repo ci -m Birth.
+ cat
+ hg -R repo ci -m Life.
+ cat
+ hg -R repo ci -m Death. --amend
+ hg -R repo glog
@ changeset: 3:6beb1647b809
| tag: tip
| parent: 0:9134909c2dbf
| user: Glenn Hutchings <zondo42@gmail.com>
| date: Tue Dec 22 20:11:10 2015 +0000
| summary: Death.
|
o changeset: 0:9134909c2dbf
user: Glenn Hutchings <zondo42@gmail.com>
date: Tue Dec 22 20:11:10 2015 +0000
summary: Birth.
+ hg -R repo --hidden glog
@ changeset: 3:6beb1647b809
| tag: tip
| parent: 0:9134909c2dbf
| user: Glenn Hutchings <zondo42@gmail.com>
| date: Tue Dec 22 20:11:10 2015 +0000
| summary: Death.
|
| x changeset: 2:9964f5fac22b
| | user: Glenn Hutchings <zondo42@gmail.com>
| | date: Tue Dec 22 20:11:10 2015 +0000
| | summary: temporary amend commit for 16e951eccb81
| |
| x changeset: 1:16e951eccb81
|/ user: Glenn Hutchings <zondo42@gmail.com>
| date: Tue Dec 22 20:11:10 2015 +0000
| summary: Life.
|
o changeset: 0:9134909c2dbf
user: Glenn Hutchings <zondo42@gmail.com>
date: Tue Dec 22 20:11:10 2015 +0000
summary: Birth.
+ hg -R repo id -n -r tip
+ tip=3
+ expr 3 - 1
+ hg -R repo id -n -r 2
abort: hidden revision '2'!
(use --hidden to access hidden revisions)
+ hg -R repo id -n -r 3^
0
+ hg -R repo --config extensions.evolve=! id -n -r 3^
obsolete feature not enabled but 2 markers found!
0
next prev parent reply other threads:[~2015-12-22 20:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 11:36 bug#22032: 24.3; VC doesn't handle hg hidden revisions Glenn Hutchings
2015-11-28 2:44 ` Dmitry Gutov
[not found] ` <5659C34E.4070300@gmail.com>
2015-11-28 18:09 ` Dmitry Gutov
2015-12-13 10:54 ` Glenn Hutchings
2015-12-14 3:30 ` Dmitry Gutov
[not found] ` <CA+hLqocwRQqXHZj1i8YOQiJS2c1nL7ahVP7OrdS=oizy=ct1XQ@mail.gmail.com>
2015-12-15 14:08 ` Dmitry Gutov
2015-12-15 23:53 ` Andy Moreton
2015-12-16 0:03 ` Dmitry Gutov
2015-12-16 3:02 ` Andy Moreton
2015-12-18 5:02 ` Dmitry Gutov
2015-12-22 20:17 ` Glenn Hutchings [this message]
2015-12-22 21:33 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5679AFC5.1060109@gmail.com \
--to=zondo42@gmail.com \
--cc=22032@debbugs.gnu.org \
--cc=andrewjmoreton@gmail.com \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.