Reputation: 15147
I noticed a problem:
In Mercurial bookmarks are intended to be used for feature-branches and be the equivalent of branches in Git. But In Git revision is always has an information about to which branch it belongs. So in Git we are always can say when work on feature is started and when - finished.
In Mercurial - bookmark points to just one commit, so we cant say where feature branch actually starts, and we cannot merge that feature branch back (because the revision will belong to the same branch as that revision we want to merge with). That is only possible if use named branches, but they are to 'heavy' for feature branches, while bookmarks seems to be too 'lightweight'.
What are common solutions of that problem and how proper feature-branching happens in Mercurial?
upd:
Approximate workflow for want I want to achieve is:
- Make new meaningless commit to default
- Update to previous commit, and make commits related to the feature
- Then merge with meaningless commit, and amend it with results of merge.
Upvotes: 2
Views: 567
Reputation: 97282
hg merge <bookmark>
Upvotes: 3