mercurial/debugcommands.py
branchstable
changeset 34027 3c3066367d72
parent 33553 9c4e2aa0a239
child 34120 07f09995e857
equal deleted inserted replaced
33884:5707bfe04deb 34027: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