mercurial/util.py
changeset 36747 ca201470abb4
parent 36724 d77c3b023393
child 36789 ffa3026d4196
equal deleted inserted replaced
36746:1f9bbd1d6b8a 36747:ca201470abb4
  3095     Raises an error.Abort when the url is unsafe.
  3095     Raises an error.Abort when the url is unsafe.
  3096     """
  3096     """
  3097     path = urlreq.unquote(path)
  3097     path = urlreq.unquote(path)
  3098     if path.startswith('ssh://-') or path.startswith('svn+ssh://-'):
  3098     if path.startswith('ssh://-') or path.startswith('svn+ssh://-'):
  3099         raise error.Abort(_('potentially unsafe url: %r') %
  3099         raise error.Abort(_('potentially unsafe url: %r') %
  3100                           (path,))
  3100                           (pycompat.bytestr(path),))
  3101 
  3101 
  3102 def hidepassword(u):
  3102 def hidepassword(u):
  3103     '''hide user credential in a url string'''
  3103     '''hide user credential in a url string'''
  3104     u = url(u)
  3104     u = url(u)
  3105     if u.passwd:
  3105     if u.passwd: