You have two questions, let me take them one at a time (with a little rephrasing):
Q. When I hg pull and get a new Mercurial chapter, suppose I am hg merge . Should I?
A. No. Mercurial simply warns you that you have more goals than you, and that if you do not like this agreement, you can merge to stop it. Named branches are heads, so you will see this warning if you pull a new head along with you.
Q. If I want to merge the same branch into another, should I provide a version number?
A. No. Itβs true that hg merge will automatically select heads in only the same named branch, but you can make hg merge -r newfeature and this merge in the set of changes from the point of difference to head on newfeature (6880 in your example) is exactly the same as hg update -r 6880 .
In any case, after completing this merge, you will not have goals for newfeature (the new, resulting head is on default , because it was the name of your parent branch before you started the merge. Doing this after the merge:
hg update newfeature ...code.... hg commit
will create a new branch in the newfeature branch, and you will go back, as before the merge, except that all the changes that were in the new function are now available in default .
source share