[Pkg-bazaar-commits] ./bzr/unstable r255: - New whoami command

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:51:34 UTC 2009


------------------------------------------------------------
revno: 255
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-04-15 11:32:17 +1000
message:
  - New whoami command
modified:
  NEWS
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2005-04-15 00:51:13 +0000
+++ b/NEWS	2005-04-15 01:32:17 +0000
@@ -19,6 +19,8 @@
       fully-qualified name is not used because that tends to fail when
       there are DNS problems.
 
+    * New 'bzr whoami' command instead of username user-email.
+
 
   BUG FIXES: 
 

=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-04-15 01:31:21 +0000
+++ b/bzrlib/commands.py	2005-04-15 01:32:17 +0000
@@ -651,14 +651,14 @@
         sys.exit(1)
 
 
-def cmd_username():
+def cmd_whoami():
+    """Show bzr user id.
+
+    TODO: Command to show only the email-address part as parsed out.
+    """
     print bzrlib.osutils.username()
 
 
-def cmd_user_email():
-    print bzrlib.osutils.user_email()
-
-
 def cmd_gen_revision_id():
     print bzrlib.branch._gen_revision_id(time.time())
 



More information about the Pkg-bazaar-commits mailing list