mercurial/util.py
branchstable
changeset 14825 de9eb6b1da4f
parent 14766 4f56b7530eab
child 14908 e2b5605501df
child 14915 28edd65000d9
equal deleted inserted replaced
14824:7698c275aa56 14825:de9eb6b1da4f
  1587     return bool(url(path).scheme)
  1587     return bool(url(path).scheme)
  1588 
  1588 
  1589 def hasdriveletter(path):
  1589 def hasdriveletter(path):
  1590     return path[1:2] == ':' and path[0:1].isalpha()
  1590     return path[1:2] == ':' and path[0:1].isalpha()
  1591 
  1591 
  1592 def localpath(path):
  1592 def urllocalpath(path):
  1593     return url(path, parsequery=False, parsefragment=False).localpath()
  1593     return url(path, parsequery=False, parsefragment=False).localpath()
  1594 
  1594 
  1595 def hidepassword(u):
  1595 def hidepassword(u):
  1596     '''hide user credential in a url string'''
  1596     '''hide user credential in a url string'''
  1597     u = url(u)
  1597     u = url(u)