diff -r 3290e24bb3f0 -r e7bf09acd410 mercurial/merge.py --- 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: