~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Martin Pool
  • Date: 2007-07-13 01:37:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2615.
  • Revision ID: mbp@sourcefrog.net-20070713013719-x6j1ha53ymowniri
Restore display of copyright in bzr version, accidentally removed

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from bzrlib.branch import Branch
31
31
 
32
32
 
33
 
def show_version(show_config=True, show_copyright=False):
 
33
def show_version(show_config=True, show_copyright=True):
34
34
    print "Bazaar (bzr) %s" % bzrlib.__version__
35
35
    # is bzrlib itself in a branch?
36
36
    src_tree = _get_bzr_source_tree()
51
51
    else:
52
52
        print bzrlib.__path__[0]
53
53
    if show_config:
54
 
        print
55
54
        print "  Bazaar configuration:", config.config_dir()
56
55
        print "  Bazaar log file:", trace._bzr_log_filename
57
56
    if show_copyright:
 
57
        print
58
58
        print bzrlib.__copyright__
59
59
        print "http://bazaar-vcs.org/"
60
60
        print
61
61
        print "bzr comes with ABSOLUTELY NO WARRANTY.  bzr is free software, and"
62
62
        print "you may use, modify and redistribute it under the terms of the GNU"
63
63
        print "General Public License version 2 or later."
 
64
    print
64
65
 
65
66
 
66
67
def _get_bzr_source_tree():