aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-12-06 08:54:25 -0500
committerW. Trevor King <wking@drexel.edu>2010-12-06 08:54:25 -0500
commit22dd202ff4c0a1893f6e9f4d2b6aa1d4da3bf728 (patch)
treea6deb922aa28316ce2ca3cedbc64cb78dedb36ba
parentb949962d938e3338288d1c06a1ae26b71c213ffe (diff)
downloadbugseverywhere-22dd202ff4c0a1893f6e9f4d2b6aa1d4da3bf728.tar.gz
Adjust `be show --xml` since changes to version_info after Bzr->Git migration.
-rw-r--r--libbe/command/show.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbe/command/show.py b/libbe/command/show.py
index 27be07c..33c898f 100644
--- a/libbe/command/show.py
+++ b/libbe/command/show.py
@@ -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