topic: stabilise the output of --age when date ties
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 13 Sep 2017 21:41:57 +0200
changeset 2930 7932a0deae18
parent 2929 06844693bb21
child 2931 83d2c9637e89
topic: stabilise the output of --age when date ties We just needed to introduce sort to stabilize the output order.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Fri Sep 15 15:48:18 2017 +0200
+++ b/hgext3rd/topic/__init__.py	Wed Sep 13 21:41:57 2017 +0200
@@ -735,7 +735,7 @@
         namemask = '%%-%is' % maxwidth
     activetopic = repo.currenttopic
     for timevalue in times:
-        curtopics = timedict[timevalue][1]
+        curtopics = sorted(timedict[timevalue][1])
         for topic in curtopics:
             fm.startitem()
             marker = ' '