~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-28 19:47:54 UTC
  • mto: (1185.50.36 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: john@arbash-meinel.com-20051228194754-27fd0b38f0b9a7f2
bzr --version prints branch nickname.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1466
1466
    # is bzrlib itself in a branch?
1467
1467
    bzrrev = bzrlib.get_bzr_revision()
1468
1468
    if bzrrev:
1469
 
        print "  (bzr checkout, revision %d {%s})" % bzrrev
 
1469
        revno, revision_id, branch = bzrrev
 
1470
        print "  bzr checkout, revision %d" % (revno,)
 
1471
        print "  nick: %s" % (branch.nick,)
 
1472
        print "  revid: %s" % (revision_id,)
1470
1473
    print bzrlib.__copyright__
1471
1474
    print "http://bazaar-ng.org/"
1472
1475
    print