Hg: active bookmark against the current branch

I'm new to Hg bookmarking, used Hg branches before (and Git experience). Although I've read the bookmarks documentation , it's not clear to me if they work on top of branches or are independent of them. Is it possible that the branch is checked out as well as the bookmark (active bookmark)? If so, will the bookmark always take precedence? If not, does the bookmark "deactivate" the current branch, or vice versa? Is it possible for the bookmark to have the same name as the branch?

+3


source to share


1 answer


You usually check one changeset. One changeset is always specified in a bookmark. A branch (called) usually has many changesets (which are all part of that branch). When you update a branch, Mercurial updates the latest set of changes in that branch.



Bookmarks and branches are independent. However, you can of course check out the FUNNY_STUFF bookmark, which is accidentally part of your JOYRIDE branch. And when the FUNNY_STUFF bookmark is even the most recent commit in the JOYRIDE branch, then checking FUNNY_STUFF or JOYRIDE will even cause the same changelog to be checked out.

+1


source







All Articles