##// END OF EJS Templates
localrepo: do not store URL password in undo.desc
Patrick Mezard -
r10886:38f2ef9c default
parent child Browse files
Show More
@@ -14,6 +14,7 b' 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
@@ -2017,7 +2018,7 b' class localrepository(repo.repository):'
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
@@ -11,13 +11,14 b' hg serve -p $HGPORT -d --pid-file=hg.pid'
11 cat hg.pid >> $DAEMON_PIDS
11 cat hg.pid >> $DAEMON_PIDS
12 cd ..
12 cd ..
13
13
14 hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/,"
14 hg clone --pull http://foo:bar@localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/,"
15 cd copy
15 cd copy
16 hg verify
16 hg verify
17 hg co
17 hg co
18 cat foo
18 cat foo
19 hg manifest --debug
19 hg manifest --debug
20 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
20 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
21 hg rollback --dry-run --verbose | sed -e "s,:$HGPORT/,:\$HGPORT/,"
21
22
22 echo % issue 622
23 echo % issue 622
23 cd ..
24 cd ..
@@ -19,9 +19,10 b' 1 files, 1 changesets, 1 total revisions'
19 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
19 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
20 foo
20 foo
21 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
21 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
22 pulling from http://localhost:$HGPORT/
22 pulling from http://foo:***@localhost:$HGPORT/
23 searching for changes
23 searching for changes
24 no changes found
24 no changes found
25 rolling back pull (http://foo:***@localhost:$HGPORT/) to revision 0
25 % issue 622
26 % issue 622
26 pulling from ../test
27 pulling from ../test
27 requesting all changes
28 requesting all changes
General Comments 0
You need to be logged in to leave comments. Login now