From: W. Trevor King Date: Mon, 6 Dec 2010 13:54:25 +0000 (-0500) Subject: Adjust `be show --xml` since changes to version_info after Bzr->Git migration. X-Git-Tag: 1.0.0~1^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=22dd202ff4c0a1893f6e9f4d2b6aa1d4da3bf728;p=be.git Adjust `be show --xml` since changes to version_info after Bzr->Git migration. --- 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): '', ' ', ' %s' % 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' % (tag, value, tag)) lines.append(' ') return lines