comparison mercurial/debugcommands.py @ 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 9c4e2aa0a239
children 07f09995e857
comparison
equal deleted inserted replaced
33671:5707bfe04deb 33672:3c3066367d72
2076 if pycompat.osname != 'nt': 2076 if pycompat.osname != 'nt':
2077 raise error.Abort(_('certificate chain building is only possible on ' 2077 raise error.Abort(_('certificate chain building is only possible on '
2078 'Windows')) 2078 'Windows'))
2079 2079
2080 if not source: 2080 if not source:
2081 if not repo:
2082 raise error.Abort(_("there is no Mercurial repository here, and no "
2083 "server specified"))
2081 source = "default" 2084 source = "default"
2082 elif not repo:
2083 raise error.Abort(_("there is no Mercurial repository here, and no "
2084 "server specified"))
2085 2085
2086 source, branches = hg.parseurl(ui.expandpath(source)) 2086 source, branches = hg.parseurl(ui.expandpath(source))
2087 url = util.url(source) 2087 url = util.url(source)
2088 addr = None 2088 addr = None
2089 2089