mercurial/merge.py
changeset 16719 e7bf09acd410
parent 16696 d1afbf03e69a
child 16794 98687cdddcb1
--- a/mercurial/merge.py	Sun May 13 16:39:40 2012 +0200
+++ b/mercurial/merge.py	Sun May 13 14:04:04 2012 +0200
@@ -7,7 +7,7 @@
 
 from node import nullid, nullrev, hex, bin
 from i18n import _
-import scmutil, util, filemerge, copies, subrepo
+import error, scmutil, util, filemerge, copies, subrepo
 import errno, os, shutil
 
 class mergestate(object):
@@ -529,8 +529,8 @@
         if node is None:
             # tip of current branch
             try:
-                node = repo.branchtags()[wc.branch()]
-            except KeyError:
+                node = repo.branchtip(wc.branch())
+            except error.RepoLookupError:
                 if wc.branch() == "default": # no default branch!
                     node = repo.lookup("tip") # update to tip
                 else: