==== Merge more than two heads ==== Merging multiple heads case. See also [[Merge|merge]] command and MultipleHeads. {{{#!dot digraph { rankdir = LR node [shape=record] rev0 [label="{{ p1 | p2} | rev 0:838e}"]; rev1 [label="{{ p1 | p2} | rev 1:34ef}"]; rev2 [label="{{ p1 | p2} | rev 2:4563}"]; rev3 [label="{{ p1 | p2} | rev 3:fe56}"]; rev4 [label="{{ p1 | p2} | rev 4:ac98}"]; rev6 [label="{{ p1 | p2} | rev 6:aoeu (tip)}"]; rev5 [label="{{ p1 | p2} | rev 5:sp09}"]; workingdir [shape=record, label="{{ p1 | p2} | working directory}"]; rev0 -> rev1:p1 [dir=back] rev1 -> rev2:p1 [dir=back] rev1 -> rev3:p1 [dir=back] rev2 -> rev4:p1 [dir=back] rev3 -> rev4:p2 [dir=back] rev3 -> rev5:p1 [dir=back] rev3 -> rev6:p1 [dir=back] rev4 -> workingdir:p1 [dir=back] label = "more than two heads ..." } }}} {{{#!dot digraph { rankdir = LR node [shape=record] rev0 [label="{{ p1 | p2} | rev 0:838e}"]; rev1 [label="{{ p1 | p2} | rev 1:34ef}"]; rev2 [label="{{ p1 | p2} | rev 2:4563}"]; rev3 [label="{{ p1 | p2} | rev 3:fe56}"]; rev4 [label="{{ p1 | p2} | rev 4:ac98}"]; rev6 [label="{{ p1 | p2} | rev 6:aoeu (tip)}"]; rev5 [label="{{ p1 | p2} | rev 5:sp09}"]; workingdir [shape=record, label="{{ p1 | p2} | working directory}"]; rev0 -> rev1:p1 [dir=back] rev1 -> rev2:p1 [dir=back] rev1 -> rev3:p1 [dir=back] rev2 -> rev4:p1 [dir=back] rev3 -> rev4:p2 [dir=back] rev3 -> rev5:p1 [dir=back] rev3 -> rev6:p1 [dir=back] rev4 -> workingdir:p1 [dir=back] rev6 -> workingdir:p2 [dir=back] label = "hg merge -r 6" } }}} {{{#!dot digraph { rankdir = LR node [shape=record] rev0 [label="{{ p1 | p2} | rev 0:838e}"]; rev1 [label="{{ p1 | p2} | rev 1:34ef}"]; rev2 [label="{{ p1 | p2} | rev 2:4563}"]; rev3 [label="{{ p1 | p2} | rev 3:fe56}"]; rev4 [label="{{ p1 | p2} | rev 4:ac98}"]; rev6 [label="{{ p1 | p2} | rev 6:aoeu}"]; rev5 [label="{{ p1 | p2} | rev 5:sp09}"]; rev7 [label="{{ p1 | p2} | rev 7:sntr (tip)}"]; workingdir [shape=record, label="{{ p1 | p2} | working directory}"]; rev0 -> rev1:p1 [dir=back] rev1 -> rev2:p1 [dir=back] rev1 -> rev3:p1 [dir=back] rev2 -> rev4:p1 [dir=back] rev3 -> rev4:p2 [dir=back] rev3 -> rev5:p1 [dir=back] rev3 -> rev6:p1 [dir=back] rev4 -> rev7:p1 [dir=back] rev6 -> rev7:p2 [dir=back] rev7 -> workingdir:p1 [dir=back] label = "hg commit -m 'merge 6'" } }}} {{{#!dot digraph { rankdir = LR node [shape=record] rev0 [label="{{ p1 | p2} | rev 0:838e}"]; rev1 [label="{{ p1 | p2} | rev 1:34ef}"]; rev2 [label="{{ p1 | p2} | rev 2:4563}"]; rev3 [label="{{ p1 | p2} | rev 3:fe56}"]; rev4 [label="{{ p1 | p2} | rev 4:ac98}"]; rev6 [label="{{ p1 | p2} | rev 6:aoeu}"]; rev5 [label="{{ p1 | p2} | rev 5:sp09}"]; rev7 [label="{{ p1 | p2} | rev 7:sntr (tip)}"]; workingdir [shape=record, label="{{ p1 | p2} | working directory}"]; rev0 -> rev1:p1 [dir=back] rev1 -> rev2:p1 [dir=back] rev1 -> rev3:p1 [dir=back] rev2 -> rev4:p1 [dir=back] rev3 -> rev4:p2 [dir=back] rev3 -> rev5:p1 [dir=back] rev3 -> rev6:p1 [dir=back] rev4 -> rev7:p1 [dir=back] rev6 -> rev7:p2 [dir=back] rev7 -> workingdir:p1 [dir=back] rev5 -> workingdir:p2 [dir=back] label = "hg merge -r 5" } }}} {{{#!dot digraph { rankdir = LR node [shape=record] rev0 [label="{{ p1 | p2} | rev 0:838e}"]; rev1 [label="{{ p1 | p2} | rev 1:34ef}"]; rev2 [label="{{ p1 | p2} | rev 2:4563}"]; rev3 [label="{{ p1 | p2} | rev 3:fe56}"]; rev4 [label="{{ p1 | p2} | rev 4:ac98}"]; rev6 [label="{{ p1 | p2} | rev 6:aoeu}"]; rev5 [label="{{ p1 | p2} | rev 5:sp09}"]; rev7 [label="{{ p1 | p2} | rev 7:sntr}"]; rev8 [label="{{ p1 | p2} | rev 7:uidr (tip)}"]; workingdir [shape=record, label="{{ p1 | p2} | working directory}"]; rev0 -> rev1:p1 [dir=back] rev1 -> rev2:p1 [dir=back] rev1 -> rev3:p1 [dir=back] rev2 -> rev4:p1 [dir=back] rev3 -> rev4:p2 [dir=back] rev3 -> rev5:p1 [dir=back] rev3 -> rev6:p1 [dir=back] rev4 -> rev7:p1 [dir=back] rev6 -> rev7:p2 [dir=back] rev7 -> rev8:p1 [dir=back] rev5 -> rev8:p2 [dir=back] rev8 -> workingdir:p1 [dir=back] label = "hg commit -m 'merge 5'" } }}} ---- CategoryHowTo