~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-04-15 01:32:17 UTC
  • Revision ID: mbp@sourcefrog.net-20050415013217-3ca0c1ea09543bd0
- New whoami command

Show diffs side-by-side

added added

removed removed

Lines of Context:
651
651
        sys.exit(1)
652
652
 
653
653
 
654
 
def cmd_username():
 
654
def cmd_whoami():
 
655
    """Show bzr user id.
 
656
 
 
657
    TODO: Command to show only the email-address part as parsed out.
 
658
    """
655
659
    print bzrlib.osutils.username()
656
660
 
657
661
 
658
 
def cmd_user_email():
659
 
    print bzrlib.osutils.user_email()
660
 
 
661
 
 
662
662
def cmd_gen_revision_id():
663
663
    print bzrlib.branch._gen_revision_id(time.time())
664
664