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 = {
Trivial fix for now:
=== modified file 'loggerhead/ history. py' history. py 2011-03-16 14:43:36 +0000 history. py 2011-03-25 12:43:31 +0000 tags[revision. revision_ id]] natural( self._branch, tags) self._branch, tags)
--- loggerhead/
+++ loggerhead/
@@ -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_
- tag.sort_
+ sort_func = getattr(tag, 'sort_natural', None)
+ if sort_func is None:
+ tags.sort()
+ else:
+ sort_func(
revtags = u', '.join([t[0] for t in tags])
entry = {