mercurial/debugcommands.py
changeset 34120 07f09995e857
parent 34025 626a28f30dbd
parent 34027 3c3066367d72
child 34129 902219a99901
equal deleted inserted replaced
34119:d4a5193332b3 34120:07f09995e857
  2083     if pycompat.osname != 'nt':
  2083     if pycompat.osname != 'nt':
  2084         raise error.Abort(_('certificate chain building is only possible on '
  2084         raise error.Abort(_('certificate chain building is only possible on '
  2085                             'Windows'))
  2085                             'Windows'))
  2086 
  2086 
  2087     if not source:
  2087     if not source:
       
  2088         if not repo:
       
  2089             raise error.Abort(_("there is no Mercurial repository here, and no "
       
  2090                                 "server specified"))
  2088         source = "default"
  2091         source = "default"
  2089     elif not repo:
       
  2090         raise error.Abort(_("there is no Mercurial repository here, and no "
       
  2091                             "server specified"))
       
  2092 
  2092 
  2093     source, branches = hg.parseurl(ui.expandpath(source))
  2093     source, branches = hg.parseurl(ui.expandpath(source))
  2094     url = util.url(source)
  2094     url = util.url(source)
  2095     addr = None
  2095     addr = None
  2096 
  2096