Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 10886:38f2ef9c134b
localrepo: do not store URL password in undo.desc
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 12 Apr 2010 21:37:21 +0200 |
parents | f0bfe42c7b1f |
children | 5e18023820a9 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Apr 11 20:59:55 2010 -0700 +++ b/mercurial/localrepo.py Mon Apr 12 21:37:21 2010 +0200 @@ -14,6 +14,7 @@ import match as matchmod import merge as mergemod import tags as tagsmod +import url as urlmod from lock import release import weakref, stat, errno, os, time, inspect propertycache = util.propertycache @@ -2017,7 +2018,7 @@ cl.delayupdate() oldheads = len(cl.heads()) - tr = self.transaction(",".join([srctype, url])) + tr = self.transaction(",".join([srctype, urlmod.hidepassword(url)])) try: trp = weakref.proxy(tr) # pull off the changeset group