changeset 8054:b13cc762314a

httprepo: hide password in debug traces too
author Patrick Mezard <pmezard@gmail.com>
date Mon, 13 Apr 2009 14:33:47 +0200
parents 976170068286
children 027ac8ccfb5b 26316dda374f
files mercurial/httprepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httprepo.py	Sat Apr 11 18:34:21 2009 -0500
+++ b/mercurial/httprepo.py	Mon Apr 13 14:33:47 2009 +0200
@@ -104,7 +104,7 @@
         if not (proto.startswith('application/mercurial-') or
                 proto.startswith('text/plain') or
                 proto.startswith('application/hg-changegroup')):
-            self.ui.debug(_("Requested URL: '%s'\n") % cu)
+            self.ui.debug(_("Requested URL: '%s'\n") % url.hidepassword(cu))
             raise error.RepoError(_("'%s' does not appear to be an hg repository")
                                   % safeurl)