# HG changeset patch # User Brendan Cully # Date 1205278138 25200 # Node ID a474622649063ecfae125f2ec490f998159c87a5 # Parent 14a4fdf9037fd86b8205b18bd78b9fb658c1a13e Hide URL passwords in hg paths output. diff -r 14a4fdf9037f -r a47462264906 mercurial/commands.py --- a/mercurial/commands.py Tue Mar 11 16:04:25 2008 -0700 +++ b/mercurial/commands.py Tue Mar 11 16:28:58 2008 -0700 @@ -1954,13 +1954,13 @@ if search: for name, path in ui.configitems("paths"): if name == search: - ui.write("%s\n" % path) + ui.write("%s\n" % util.hidepassword(path)) return ui.warn(_("not found!\n")) return 1 else: for name, path in ui.configitems("paths"): - ui.write("%s = %s\n" % (name, path)) + ui.write("%s = %s\n" % (name, util.hidepassword(path))) def postincoming(ui, repo, modheads, optupdate, checkout): if modheads == 0: