emacs-devel
[Top][All Lists]
Advanced

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

Re: incorrect working revision for the mercurial VC backend


From: Dan Nicolaescu
Subject: Re: incorrect working revision for the mercurial VC backend
Date: Tue, 29 Dec 2009 19:29:33 -0800 (PST)

Alex Harsanyi <address@hidden> writes:

  > 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.

Yes, see the recent discussion on the list, using "hg parent" is the
advice I got from Matt Mackall.  I'll make that change when I get a
chance.




reply via email to

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