Reputation: 26938
$ hg heads
changeset: 211:746a4ab8b3e3
What is 211
and 746a4ab8b3e3
respectively?
When I do hg revert -r REV
, what should REV
be? 211
or 746a4ab8b3e3
, or 211:746a4ab8b3e3
?
Upvotes: 8
Views: 1105
Reputation:
211
is the local revision number and 746a4ab8b3e3
is the short Node ID. The local revision will [likely] differ between repositories for the same Node ID and is not useful to communicate revisions. The form with the :
is just a way they are commonly represented together for display.
In most cases either "revision number" is okay for use with Hg commands. (And the local version is easier to type!) Be warned, though: if someone says to "update to revision 42" then they are either looking at your screen or need to be taught a lesson.
Now go find an Hg tutorial ;-)
Upvotes: 11
Reputation: 12557
As pst said before 211 is the local revision number.
I'd recommend to have a look at this great HG INIT Tutorial
from the following example of HG Init you can see that with each checkin the first changeset number is increased.
changeset: 1:a52881ed530d tag: tip user: Joel Spolsky date: Mon Feb 08 14:51:18 2010 -0500 summary: Change crunch to smoosh
changeset: 0:c1fb7e7fbe50 user: Joel Spolsky date: Mon Feb 08 14:50:08 2010 -0500 summary: Initial version of guacamole recipe
Upvotes: 1