Comment 5 for bug 742390

Revision history for this message
John A Meinel (jameinel) wrote :

Trivial fix for now:

=== modified file 'loggerhead/history.py'
--- loggerhead/history.py 2011-03-16 14:43:36 +0000
+++ loggerhead/history.py 2011-03-25 12:43:31 +0000
@@ -720,7 +720,11 @@
           # tag.sort_* functions expect (tag, data) pairs, so we generate them,
           # and then strip them
           tags = [(t, None) for t in self._branch_tags[revision.revision_id]]
- tag.sort_natural(self._branch, tags)
+ sort_func = getattr(tag, 'sort_natural', None)
+ if sort_func is None:
+ tags.sort()
+ else:
+ sort_func(self._branch, tags)
           revtags = u', '.join([t[0] for t in tags])

         entry = {