mercurial/merge.py
changeset 4815 8808ea7da86b
parent 4681 dc5920ea12f8
child 4820 9797124581c9
equal deleted inserted replaced
4798:452d171a1b39 4815:8808ea7da86b
   521     ### check phase
   521     ### check phase
   522     if not overwrite and len(pl) > 1:
   522     if not overwrite and len(pl) > 1:
   523         raise util.Abort(_("outstanding uncommitted merges"))
   523         raise util.Abort(_("outstanding uncommitted merges"))
   524     if pa == p1 or pa == p2: # is there a linear path from p1 to p2?
   524     if pa == p1 or pa == p2: # is there a linear path from p1 to p2?
   525         if branchmerge:
   525         if branchmerge:
   526             if p1.branch() != p2.branch():
   526             if p1.branch() != p2.branch() and pa != p2:
   527                 fastforward = True
   527                 fastforward = True
   528             else:
   528             else:
   529                 raise util.Abort(_("there is nothing to merge, just use "
   529                 raise util.Abort(_("there is nothing to merge, just use "
   530                                    "'hg update' or look at 'hg heads'"))
   530                                    "'hg update' or look at 'hg heads'"))
   531     elif not (overwrite or branchmerge):
   531     elif not (overwrite or branchmerge):