/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 bzrlib/cmd_version_info.py

  • Committer: Lukáš Lalinský
  • Date: 2007-11-10 11:25:36 UTC
  • mto: This revision was merged to the branch mainline in revision 3123.
  • Revision ID: lalinsky@gmail.com-20071110112536-48wqnw88fdmiorww
Fix problems from Alexander's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    For example::
57
57
 
58
58
      bzr version-info --custom \\
59
 
        --template="#define VERSION \\"Foo 1.2.3 (r{revno})\\"\\n"
 
59
        --template="#define VERSION_INFO \\"Project 1.2.3 (r{revno})\\"\\n"
60
60
 
61
61
    will produce a C header file with formatted string containing the
62
62
    current revision number. Other supported variables in templates are:
66
66
      * {revno} - revision number
67
67
      * {revision_id} - revision id
68
68
      * {branch_nick} - branch nickname
69
 
      * {clean} - 1 if the source tree contains uncommitted changes,
70
 
                  otherwise 0
 
69
      * {clean} - 0 if the source tree contains uncommitted changes,
 
70
                  otherwise 1
71
71
    """
72
72
 
73
73
    takes_options = [RegistryOption('format',
88
88
 
89
89
    def run(self, location=None, format=None,
90
90
            all=False, check_clean=False, include_history=False,
91
 
            include_file_revisions=False, template=None,
92
 
            template_file=None):
 
91
            include_file_revisions=False, template=None):
93
92
 
94
93
        if location is None:
95
94
            location = '.'