We are just switching to Mercurial where I work this week. I'm starting to read material, and was hoping somebody could succinctly answer this question:
What's the difference between Mercurial's "tip" tag and the "default" branch?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communitytip can be on a different branch than default.
hg uses the latest revision your "-r somewhat" matches. if somewhat is a branch, it updates to its latest head. if somewhat is a tag it updates to the revision this tag is associated with.
Tip is the most recent changeset in the repository. Default is a branch. Tip is a special Tag (a named changeset) which always refers to the most recently changed Head.
tip
is just an alias for the last changeset in your repo. Sometimes it comes in handy, e.g. you make a change in branch supercalifragilisticexpialidocious
which you would then like to merge into branch default
; so then you update to branch default
and because you know that the work you want to merge into default
is at the tip of your local repository (because you’ve just committed it), instead of doing hg merge supercalifragilisticexpialidocious
you may do hg merge tip
.