mercurial/merge.py
changeset 4232 0d51eb296fb9
parent 4209 dbc3846c09a1
child 4309 09c5f734ff6a
equal deleted inserted replaced
4224:2a8b6d78d7ee 4232:0d51eb296fb9
   448         wlock = repo.wlock()
   448         wlock = repo.wlock()
   449 
   449 
   450     wc = repo.workingctx()
   450     wc = repo.workingctx()
   451     if node is None:
   451     if node is None:
   452         # tip of current branch
   452         # tip of current branch
   453         node = repo.branchtags()[wc.branch()]
   453         try:
       
   454             node = repo.branchtags()[wc.branch()]
       
   455         except KeyError:
       
   456             raise util.Abort(_("branch %s not found") % wc.branch())
   454     overwrite = force and not branchmerge
   457     overwrite = force and not branchmerge
   455     forcemerge = force and branchmerge
   458     forcemerge = force and branchmerge
   456     pl = wc.parents()
   459     pl = wc.parents()
   457     p1, p2 = pl[0], repo.changectx(node)
   460     p1, p2 = pl[0], repo.changectx(node)
   458     pa = p1.ancestor(p2)
   461     pa = p1.ancestor(p2)