Comment 2 for bug 569934

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Made a branch to fix this =)

$ bzr version-info --python > bla.py

$ bzr version-info
revision-id: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:trunk:2178
date: 2010-04-12 18:54:13 +0000
svn-revno: 2178
svn-uuid: 4407c894-4637-0410-b4f5-ada5f102cad1
build-date: 2010-04-26 01:49:14 +0100
revno: 1512
branch-nick: trunk

$ python bla.py
revno: 1512
svn-revno: 2178
branch-nick: trunk
svn-uuid: 4407c894-4637-0410-b4f5-ada5f102cad1
date: 2010-04-12 18:54:13 +0000
build-date: 2010-04-26 01:49:08 +0100
revision-id: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:trunk:2178

$ cat bla.py
#!/usr/bin/env python
"""This file is automatically generated by generate_version_info
It uses the current working tree to determine the revision.
So do not edit it. :)
"""

version_info = {'branch-nick': u'trunk',
 'build-date': u'2010-04-26 01:49:08 +0100',
 'date': u'2010-04-12 18:54:13 +0000',
 'revision-id': u'svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:trunk:2178',
 'revno': u'1512',
 'svn-revno': u'2178',
 'svn-uuid': u'4407c894-4637-0410-b4f5-ada5f102cad1'}

revisions = {}

file_revisions = {}

if __name__ == '__main__':

    for key in version_info:
        print key + ': ' + version_info[key]