--- 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):