Rev 6506: Use stacks for the lock email which takes full advantage of the cached stores by not re-reading the config files needlessly. in file:///home/vila/src/bzr/bugs/832042-shared-stores/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Thu Aug 2 11:30:36 UTC 2012
At file:///home/vila/src/bzr/bugs/832042-shared-stores/
------------------------------------------------------------
revno: 6506
revision-id: v.ladeuil+lp at free.fr-20120802113036-fk7yisuh0uy4351a
parent: v.ladeuil+lp at free.fr-20120801140511-mfi9ce053iktbzj3
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 832042-shared-stores
timestamp: Thu 2012-08-02 13:30:36 +0200
message:
Use stacks for the lock email which takes full advantage of the cached stores by not re-reading the config files needlessly.
-------------- next part --------------
=== modified file 'bzrlib/lockdir.py'
--- a/bzrlib/lockdir.py 2011-12-19 13:23:58 +0000
+++ b/bzrlib/lockdir.py 2012-08-02 11:30:36 +0000
@@ -858,6 +858,6 @@
as it gives some clue who the user is.
"""
try:
- return config.GlobalConfig().username()
+ return config.GlobalStack().get('email')
except errors.NoWhoami:
return osutils.getuser_unicode()
More information about the bazaar-commits
mailing list