version-info : clean

Parth Malwankar parth.malwankar at gmail.com
Sun May 10 15:17:15 BST 2009


Hello,

The help for version-info mentions:

     * {clean} - 0 if the source tree contains uncommitted changes,
                 otherwise 1

However when I try this with bzr 1.14.1 I get clean as None
(for python format) even with uncommitted changes (full
log at the end).

Is this the expected behavior? Do I need to do something
differently?

Regards,
Parth



[foo-project]% bzr version-info
revision-id: parth.malwankar at gmail.com-20090510055222-nytlrsjj83wqc5v1
date: 2009-05-10 11:22:22 +0530
build-date: 2009-05-10 19:40:54 +0530
revno: 3
branch-nick: foo-project
[foo-project]% bzr version-info --python
#!/usr/bin/env python
"""This file is automatically generated by generate_version_info
It uses the current working tree to determine the revision.
So don't edit it. :)
"""

version_info = {'branch_nick': u'foo-project',
  'build_date': '2009-05-10 19:41:02 +0530',
  'clean': None,
  'date': '2009-05-10 11:22:22 +0530',
  'revision_id':  
'parth.malwankar at gmail.com-20090510055222-nytlrsjj83wqc5v1',
  'revno': 3}

revisions = {}

file_revisions = {}



if __name__ == '__main__':
     print 'revision: %(revno)d' % version_info
     print 'nick: %(branch_nick)s' % version_info
     print 'revision id: %(revision_id)s' % version_info
[foo-project]% touch bar
[foo-project]% bzr add bar
adding bar
[foo-project]% bzr version-info --python
#!/usr/bin/env python
"""This file is automatically generated by generate_version_info
It uses the current working tree to determine the revision.
So don't edit it. :)
"""

version_info = {'branch_nick': u'foo-project',
  'build_date': '2009-05-10 19:41:25 +0530',
  'clean': None,
  'date': '2009-05-10 11:22:22 +0530',
  'revision_id':  
'parth.malwankar at gmail.com-20090510055222-nytlrsjj83wqc5v1',
  'revno': 3}

revisions = {}

file_revisions = {}



if __name__ == '__main__':
     print 'revision: %(revno)d' % version_info
     print 'nick: %(branch_nick)s' % version_info
     print 'revision id: %(revision_id)s' % version_info
[foo-project]% bzr st
added:
   bar




More information about the bazaar mailing list