Adjust `be show --xml` since changes to version_info after Bzr->Git migration.
authorW. Trevor King <wking@drexel.edu>
Mon, 6 Dec 2010 13:54:25 +0000 (08:54 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 6 Dec 2010 13:54:25 +0000 (08:54 -0500)
libbe/command/show.py

index 27be07c7d792a8a31995f812818a1eda58655a84..33c898f1afb6d57fd03d3f8e0e89d61d16a4f209 100644 (file)
@@ -156,8 +156,7 @@ def _xml_header(encoding):
              '<be-xml>',
              '  <version>',
              '    <tag>%s</tag>' % libbe.version.version()]
-    for tag in ['branch-nick', 'revno', 'revision-id']:
-        value = libbe.version.version_info[tag.replace('-', '_')]
+    for tag,value in sorted(libbe.version.version_info.items()):
         lines.append('    <%s>%s</%s>' % (tag, value, tag))
     lines.append('  </version>')
     return lines