I was not lucky to use bookmarks in Mercurial for Git as a branch.
From the article: https://www.mercurial-scm.org/wiki/BookmarksExtension , I set "track.current" to true in my .hgrc file.
Excerpt below:
By default, when multiple bookmarks indicate the same set of changes, they will all move forward together. it's possible to get a more git-like experience by adding the following configuration for your .hgrc
[bookmarks] track.current = True
However, as soon as I start trying to do parallel / independent development on multiple bookmarks, then switch between bookmarks, I run the following:
abort: crosses branches (use 'hg merge' or 'hg update -C')
Playback Example:
# Make a new directory and Mercurial repository $ mkdir bookmark $ cd bookmark $ hg init
Is this common behavior because there are “intersecting branches” that force merging or rewriting of the file when moving between bookmarks?
In the case of a "Git-like experience," I would expect that you can move between bk1 and bk2, commit and develop on both, merging when and when I need to.
git version-control dvcs mercurial
Ian hill
source share