--- commands.py.orig 2009-11-26 11:59:45.417095515 -0300 +++ commands.py.modif 2009-11-26 12:02:51.013117631 -0300 @@ -2230,7 +2230,7 @@ if n != nullid: displayer.show(repo[n]) -def paths(ui, repo, search=None): +def paths(ui, repo, search=None, **opts): """show aliases for remote repositories Show definition of symbolic path name NAME. If no name is given, @@ -2244,13 +2244,19 @@ if search: for name, path in ui.configitems("paths"): if name == search: - ui.write("%s\n" % url.hidepassword(path)) + if (opts.get('show_passwords')): + ui.write("%s\n" % path) + else: + ui.write("%s\n" % url.hidepassword(path)) return ui.warn(_("not found!\n")) return 1 else: for name, path in ui.configitems("paths"): - ui.write("%s = %s\n" % (name, url.hidepassword(path))) + if (opts.get('show_passwords')): + ui.write("%s = %s\n" % (name, path)) + else: + ui.write("%s = %s\n" % (name, url.hidepassword(path))) def postincoming(ui, repo, modheads, optupdate, checkout): if modheads == 0: @@ -3425,7 +3431,11 @@ [('r', 'rev', '', _('show parents from the specified revision')), ] + templateopts, _('[-r REV] [FILE]')), - "paths": (paths, [], _('[NAME]')), + "paths": + (paths, + [('', 'show-passwords', None, + _('show passwords for remote repositories'))], + _('[NAME]')), "^pull": (pull, [('u', 'update', None,