unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* incorrect working revision for the mercurial VC backend
@ 2009-12-30  1:53 Alex Harsanyi
  2009-12-30  2:31 ` Nick Roberts
  2009-12-30  3:29 ` Dan Nicolaescu
  0 siblings, 2 replies; 8+ messages in thread
From: Alex Harsanyi @ 2009-12-30  1:53 UTC (permalink / raw)
  To: emacs-devel

It seems that `vc-hg-working-revision` is using "hg log -l1 FILE" to
obtain the working revision of the file.  This only works correctly if
the file is at the most recent revision in the workspace.  If you
update the workspace to a different repository revision using "hg
update -r REV", emacs will continue to think that files are at their
latest revision.  As a side effect, `vc-annotate` will always annotate
the latest revision of a file regardless of what the file revision is
in the workspace.

I believe using the "hg parent" command is more accurate in computing
the working revision:

    hg parent --template "{rev}" FILE

Also by using the --template option, the command will return just the
revision number, making the `string-match' call unnecessary.

Cheers,
Alex.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-30  9:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-30  1:53 incorrect working revision for the mercurial VC backend Alex Harsanyi
2009-12-30  2:31 ` Nick Roberts
     [not found]   ` <cf628bc60912291930x46faaa61j488e15cc5b953689@mail.gmail.com>
2009-12-30  3:42     ` Nick Roberts
2009-12-30  6:15       ` Alex Harsanyi
2009-12-30  7:02         ` Nick Roberts
2009-12-30  8:02         ` Eli Zaretskii
2009-12-30  9:37           ` Alex Harsanyi
2009-12-30  3:29 ` Dan Nicolaescu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).