comparison hgext3rd/topic/__init__.py @ 2930:7932a0deae18

topic: stabilise the output of --age when date ties We just needed to introduce sort to stabilize the output order.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 13 Sep 2017 21:41:57 +0200
parents 6275808e89ef
children 3b67642a0bc6
comparison
equal deleted inserted replaced
2929:06844693bb21 2930:7932a0deae18
733 if topics: 733 if topics:
734 maxwidth = max(len(t) for t in topics) 734 maxwidth = max(len(t) for t in topics)
735 namemask = '%%-%is' % maxwidth 735 namemask = '%%-%is' % maxwidth
736 activetopic = repo.currenttopic 736 activetopic = repo.currenttopic
737 for timevalue in times: 737 for timevalue in times:
738 curtopics = timedict[timevalue][1] 738 curtopics = sorted(timedict[timevalue][1])
739 for topic in curtopics: 739 for topic in curtopics:
740 fm.startitem() 740 fm.startitem()
741 marker = ' ' 741 marker = ' '
742 label = 'topic' 742 label = 'topic'
743 active = (topic == activetopic) 743 active = (topic == activetopic)