comparison mercurial/util.py @ 14825:de9eb6b1da4f stable 1.9

util: rename the util.localpath that uses url to urllocalpath (issue2875) util is never imported by any other name than util, so this is mostly just a simple search and replace from util.localpath to util.urllocalpath (assuming other uses of util.localpath already has been renamed).
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 01 Jul 2011 17:37:09 +0200
parents 4f56b7530eab
children e2b5605501df 28edd65000d9
comparison
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)