diff -r 86f5d8f608b7 -r d852151fb8d4 mercurial/util.py --- a/mercurial/util.py Fri Jan 04 11:58:27 2008 -0800 +++ b/mercurial/util.py Fri Jan 04 13:56:31 2008 -0800 @@ -1707,7 +1707,7 @@ # Avoid double backslash in Windows path repr() return repr(s).replace('\\\\', '\\') -def hidepassword(url, user=True, password=True): +def hidepassword(url): '''hide user credential in a url string''' scheme, netloc, path, params, query, fragment = urlparse.urlparse(url) netloc = re.sub('([^:]*):([^@]*)@(.*)', r'\1:***@\3', netloc)