branch | stable |
changeset 34027 | 3c3066367d72 |
parent 33553 | 9c4e2aa0a239 |
child 34120 | 07f09995e857 |
--- 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)