Mercurial > public > mercurial-scm > hg-stable
diff hgext/patchbomb.py @ 12793:469850088fc1 stable
patchbomb: hide passwords potentially embedded in urls
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 20 Oct 2010 23:39:48 +0200 |
parents | 4c1fe996838c |
children | 6bf8d48bec8e |
line wrap: on
line diff
--- 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"))