diff hgext3rd/topic/stack.py @ 3085:3eca2cbdc498

stack: order the adjective of changeset The new order give more interesting result: * base current * base unstable * current unstable It seems more harmonious this way. Base seems the most core and immutable adjective describing the element. Then current is a volatile but important one. Finally, unstable is less information than current, so it goes last.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 20 Oct 2017 14:56:03 +0200
parents 144989dabe93
children 237b39bf7e6b
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Sun Oct 15 00:03:59 2017 +0530
+++ b/hgext3rd/topic/stack.py	Fri Oct 20 14:56:03 2017 +0200
@@ -296,6 +296,9 @@
         if not symbol:
             symbol = ':'
             states.append('clean')
+
+        states.sort()
+
         fm.startitem()
         fm.data(isentry=isentry)