Rev 5993: Deprecate config.username() and friends to identify their usages. in file:///home/vila/src/bzr/bugs/276201-whoami/

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Jun 22 12:18:33 UTC 2011


At file:///home/vila/src/bzr/bugs/276201-whoami/

------------------------------------------------------------
revno: 5993
revision-id: v.ladeuil+lp at free.fr-20110622121832-lc8qlye6ipey8tzg
parent: v.ladeuil+lp at free.fr-20110622090935-dlwjl7h3209ldzj5
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 276201-whoami
timestamp: Wed 2011-06-22 14:18:32 +0200
message:
  Deprecate config.username() and friends to identify their usages.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py	2011-06-20 14:03:40 +0000
+++ b/bzrlib/config.py	2011-06-22 12:18:32 +0000
@@ -438,10 +438,12 @@
         """See Config.post_commit."""
         return None
 
+    @deprecated_method(deprecated_in((2, 4, 0)))
     def user_email(self):
         """Return just the email component of a username."""
         return extract_email_address(self.username())
 
+    @deprecated_method(deprecated_in((2, 4, 0)))
     def username(self):
         """Return email-style username.
 
@@ -468,6 +470,7 @@
             return email
         raise errors.NoWhoami()
 
+    @deprecated_method(deprecated_in((2, 4, 0)))
     def ensure_username(self):
         """Raise errors.NoWhoami if username is not set.
 



More information about the bazaar-commits mailing list