I am reading through Chris’s excellent article about working with git and pushing to BitBucket. With the instructions presented there, I managed to get everything working. However, I would like to understand what happens there. I’m specifically interested in this line:
hg bookmark hg/default -r default
I understand that this creates a bookmark named hg/default, but why does it have default as a revision? What does this mean?
The
-r(or--rev) tells Mercurial that the bookmark should be set to the head of thedefaultbranch.Using this technique, you set a bookmark to a revision other than that of your working copy.
This is documented in
hg help bookmark.