comparison 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
comparison
equal deleted inserted replaced
10884:4fb1bafd43e7 10886:38f2ef9c134b
12 import lock, transaction, store, encoding 12 import lock, transaction, store, encoding
13 import util, extensions, hook, error 13 import util, extensions, hook, error
14 import match as matchmod 14 import match as matchmod
15 import merge as mergemod 15 import merge as mergemod
16 import tags as tagsmod 16 import tags as tagsmod
17 import url as urlmod
17 from lock import release 18 from lock import release
18 import weakref, stat, errno, os, time, inspect 19 import weakref, stat, errno, os, time, inspect
19 propertycache = util.propertycache 20 propertycache = util.propertycache
20 21
21 class localrepository(repo.repository): 22 class localrepository(repo.repository):
2015 # inconsistent view 2016 # inconsistent view
2016 cl = self.changelog 2017 cl = self.changelog
2017 cl.delayupdate() 2018 cl.delayupdate()
2018 oldheads = len(cl.heads()) 2019 oldheads = len(cl.heads())
2019 2020
2020 tr = self.transaction(",".join([srctype, url])) 2021 tr = self.transaction(",".join([srctype, urlmod.hidepassword(url)]))
2021 try: 2022 try:
2022 trp = weakref.proxy(tr) 2023 trp = weakref.proxy(tr)
2023 # pull off the changeset group 2024 # pull off the changeset group
2024 self.ui.status(_("adding changesets\n")) 2025 self.ui.status(_("adding changesets\n"))
2025 clstart = len(cl) 2026 clstart = len(cl)