What’s the difference between Mercurial’s “tip” tag and the “default” branch

mercurial

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?

Best Answer

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