version control - Mercurial branching - share changes between bookmark-branches -
basically have repository such structure:
a(branch:stable) -> b(branch:dev) -> c(branch:dev, bookmark:feature) (and similar siblings)
in 1 of c sibling (to - e) made changes want share other bookmark-branches. how can that? thought merge e b, , merge new commit other bookmark-branches (siblings of c) - hg throws error - "nothing merge", when trying merge e b.
if try merge e - hg handles well, , need same, in inside single named-branch (here - dev).
how can achieve needed effect?
there nothing merge e b, because e direct descendant of b in same branch (no merges in between). can hg bookmark b -r e move b's bookmark e, merge doing anyway. afterwards, should set bookmark want active, lest accidentally wind b tracking current head , e stuck behind. can merge other siblings of c no problem.
of course, if want merge, can directly merge in changes e:
hg update c # or other siblings hg merge b hg commit -m'merged in changes b' merging e works because they're in different branches.
Comments
Post a Comment