~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/history.py

  • Committer: John Arbash Meinel
  • Date: 2011-03-25 12:48:59 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: john@arbash-meinel.com-20110325124859-din7rrndu1ejcr1z
Fix bug #742390, don't use sort_natural
if it isn't available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
720
720
          # tag.sort_* functions expect (tag, data) pairs, so we generate them,
721
721
          # and then strip them
722
722
          tags = [(t, None) for t in self._branch_tags[revision.revision_id]]
723
 
          tag.sort_natural(self._branch, tags)
 
723
          sort_func = getattr(tag, 'sort_natural', None)
 
724
          if sort_func is None:
 
725
              tags.sort()
 
726
          else:
 
727
              sort_func(self._branch, tags)
724
728
          revtags = u', '.join([t[0] for t in tags])
725
729
 
726
730
        entry = {