/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/version.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    # but sys.executable point to brz.exe itself)
58
58
    # however, sys.frozen exists if running from brz.exe
59
59
    # see http://www.py2exe.org/index.cgi/Py2exeEnvironment
60
 
    if getattr(sys, 'frozen', None) is None: # if not brz.exe
 
60
    if getattr(sys, 'frozen', None) is None:  # if not brz.exe
61
61
        to_file.write(sys.executable + ' ')
62
62
    else:
63
63
        # pythonXY.dll
82
82
    else:
83
83
        to_file.write(breezy.__path__[0] + '\n')
84
84
    if show_config:
85
 
        config_dir = osutils.normpath(config.config_dir())  # use native slashes
 
85
        config_dir = osutils.normpath(
 
86
            config.config_dir())  # use native slashes
86
87
        if not isinstance(config_dir, text_type):
87
88
            config_dir = config_dir.decode(osutils.get_user_encoding())
88
89
        to_file.write("  Breezy configuration: %s\n" % (config_dir,))
93
94
        to_file.write(breezy.__copyright__ + '\n')
94
95
        to_file.write("https://www.breezy-vcs.org/\n")
95
96
        to_file.write('\n')
96
 
        to_file.write("brz comes with ABSOLUTELY NO WARRANTY.  brz is free software, and\n")
97
 
        to_file.write("you may use, modify and redistribute it under the terms of the GNU\n")
 
97
        to_file.write(
 
98
            "brz comes with ABSOLUTELY NO WARRANTY.  brz is free software, and\n")
 
99
        to_file.write(
 
100
            "you may use, modify and redistribute it under the terms of the GNU\n")
98
101
        to_file.write("General Public License version 2 or later.\n")
99
102
    to_file.write('\n')
100
103