changeset 33672:3c3066367d72 stable

debugssl: allow a URL to be specified without a local repository This was the original intent, but I bungled the logic. Otherwise if there is a certificate chain issue, the repository can't be cloned in order for there to be a repo object. I think I missed this case because I was inside of a Mercurial clone as I was originally developing and testing this.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 29 Aug 2017 16:38:10 -0400
parents 5707bfe04deb
children e05e50fbdeaf
files mercurial/debugcommands.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sun Aug 27 13:39:17 2017 -0700
+++ b/mercurial/debugcommands.py	Tue Aug 29 16:38:10 2017 -0400
@@ -2078,10 +2078,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)