diff -r 9e0535da20a5 -r 6b1fc09c699a mercurial/destutil.py --- a/mercurial/destutil.py Wed Feb 03 15:21:11 2016 +0000 +++ b/mercurial/destutil.py Tue Feb 02 15:24:11 2016 +0000 @@ -92,7 +92,8 @@ wc = repo[None] movemark = node = None try: - node = repo.branchtip(wc.branch()) + node = repo.revs('max(.::(head() and branch(%s)))' + , wc.branch()).first() if bookmarks.isactivewdirparent(repo): movemark = repo['.'].node() except error.RepoLookupError: