~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Blake Winton
  • Date: 2007-10-16 17:37:43 UTC
  • mto: This revision was merged to the branch mainline in revision 2921.
  • Revision ID: bwinton@latte.ca-20071016173743-rbozxk906e8cbm9x
Implemented suggestions from John Arbash Meinel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    if src_tree:
40
40
        src_revision_id = src_tree.last_revision()
41
41
        revno = src_tree.branch.revision_id_to_revno(src_revision_id)
42
 
        to_file.write("  from bzr checkout" + ' ' + src_tree.basedir + '\n')
43
 
        to_file.write("    revision:" + ' ' + revno + '\n')
44
 
        to_file.write("    revid:" + ' ' + src_revision_id + '\n')
45
 
        to_file.write("    branch nick:" + ' ' + src_tree.branch.nick + '\n')
 
42
        to_file.write("  from bzr checkout %s\n" % (src_tree.basedir,))
 
43
        to_file.write("    revision: %s\n" % (revno,))
 
44
        to_file.write("    revid: %s\n" % (src_revision_id,))
 
45
        to_file.write("    branch nick: %s\n" % (src_tree.branch.nick,))
46
46
 
47
47
    to_file.write("  Python interpreter: ")
48
48
    # show path to python interpreter
73
73
        config_dir = os.path.normpath(config.config_dir())  # use native slashes
74
74
        if not isinstance(config_dir, unicode):
75
75
            config_dir = config_dir.decode(bzrlib.user_encoding)
76
 
        to_file.write("  Bazaar configuration:" + ' ' + config_dir + '\n')
77
 
        to_file.write("  Bazaar log file:" + ' ')
 
76
        to_file.write("  Bazaar configuration: %s\n" % (config_dir,))
 
77
        to_file.write("  Bazaar log file: ")
78
78
        to_file.write(trace._bzr_log_filename + '\n')
79
79
    if show_copyright:
80
80
        to_file.write('\n')