mercurial/debugcommands.py
changeset 34120 07f09995e857
parent 34025 626a28f30dbd
parent 34027 3c3066367d72
child 34129 902219a99901
--- a/mercurial/debugcommands.py	Fri Jun 30 03:39:32 2017 +0200
+++ b/mercurial/debugcommands.py	Tue Sep 12 11:18:35 2017 -0400
@@ -2085,10 +2085,10 @@
                             'Windows'))
 
     if not source:
+        if not repo:
+            raise error.Abort(_("there is no Mercurial repository here, and no "
+                                "server specified"))
         source = "default"
-    elif not repo:
-        raise error.Abort(_("there is no Mercurial repository here, and no "
-                            "server specified"))
 
     source, branches = hg.parseurl(ui.expandpath(source))
     url = util.url(source)