get rev number of current working version?
Neal Becker
ndbecker2 at gmail.com
Wed Nov 28 17:12:09 UTC 2007
On Wednesday 28 November 2007, Dustin Sallings wrote:
> you want identify
>
You'd think so, but it doesn't work.
It _does_ work if you use hg clone -r, but not for revert.
[nbecker at nbecker1 ~]$ cp -al idma-cdma idma-cdma.r297
[nbecker at nbecker1 ~]$ cd idma-cdma.r297/
[nbecker at nbecker1 idma-cdma.r297]$ hg revert -r 297 --all
reverting ...
[nbecker at nbecker1 idma-cdma.r297]$ hg id
020ca3a96b03+ tip
[nbecker at nbecker1 idma-cdma.r297]$ hg id -n
306+
This is the current repo tip, not the rev 297 of the working copy.
I want a way for my program to print out the revision it was built from.
Presumably, the revision of the working directory is the correct thing.
More information about the Mercurial
mailing list