mercurial/destutil.py
changeset 28903 e1dd0de26557
parent 28684 1ace17e1e160
child 28924 d9539959167d
--- a/mercurial/destutil.py	Wed Apr 13 09:56:51 2016 +0200
+++ b/mercurial/destutil.py	Tue Apr 05 06:53:33 2016 +0200
@@ -102,11 +102,7 @@
         if bookmarks.isactivewdirparent(repo):
             movemark = repo['.'].node()
     else:
-        if currentbranch == 'default': # no default branch!
-            # update to the tipmost non-closed branch head
-            node = repo.revs('max(head() and not closed())').first()
-        else:
-            raise error.Abort(_("branch %s not found") % currentbranch)
+        node = repo['.'].node()
     return node, movemark, None
 
 def _destupdatebranchfallback(repo, clean, check):