changeset 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 06844693bb21
children 83d2c9637e89
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = ' '