~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.py

  • Committer: Vincent Ladeuil
  • Date: 2012-08-02 11:30:36 UTC
  • mto: This revision was merged to the branch mainline in revision 6554.
  • Revision ID: v.ladeuil+lp@free.fr-20120802113036-fk7yisuh0uy4351a
Use stacks for the lock email which takes full advantage of the cached stores by not re-reading the config files needlessly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
858
858
    as it gives some clue who the user is.
859
859
    """
860
860
    try:
861
 
        return config.GlobalConfig().username()
 
861
        return config.GlobalStack().get('email')
862
862
    except errors.NoWhoami:
863
863
        return osutils.getuser_unicode()