# HG changeset patch # User Benoit Boissinot # Date 1287610788 -7200 # Node ID 469850088fc1fd8c70035d1a1026798b3f7b2dc2 # Parent 7adb1274a4f930e13b35545ef23914ccae7d5534 patchbomb: hide passwords potentially embedded in urls diff -r 7adb1274a4f9 -r 469850088fc1 hgext/patchbomb.py --- a/hgext/patchbomb.py Tue Oct 12 11:02:45 2010 -0500 +++ b/hgext/patchbomb.py Wed Oct 20 23:39:48 2010 +0200 @@ -76,7 +76,7 @@ import os, errno, socket, tempfile, cStringIO, time import email.MIMEMultipart, email.MIMEBase import email.Utils, email.Encoders, email.Generator -from mercurial import cmdutil, commands, hg, mail, patch, util, discovery +from mercurial import cmdutil, commands, hg, mail, patch, util, discovery, url from mercurial.i18n import _ from mercurial.node import bin @@ -251,7 +251,7 @@ if revs: revs = [repo.lookup(rev) for rev in revs] other = hg.repository(hg.remoteui(repo, opts), dest) - ui.status(_('comparing with %s\n') % dest) + ui.status(_('comparing with %s\n') % url.hidepassword(dest)) o = discovery.findoutgoing(repo, other) if not o: ui.status(_("no changes found\n"))