httprepo: hide password in debug traces too
authorPatrick Mezard <pmezard@gmail.com>
Mon, 13 Apr 2009 14:33:47 +0200
changeset 8054 b13cc762314a
parent 8053 976170068286
child 8055 027ac8ccfb5b
child 8061 26316dda374f
httprepo: hide password in debug traces too
mercurial/httprepo.py
--- 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)