diff hgext3rd/topic/stack.py @ 1956:d8f1e432b16a

stack: reverse the display order Most mercurial command display the most recent changeset first. We put `hg topic --list` inline with this.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 01 Apr 2016 16:57:11 -0700
parents 5452a575b4e5
children ea5553e47027
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Fri Apr 01 16:55:24 2016 -0700
+++ b/hgext3rd/topic/stack.py	Fri Apr 01 16:57:11 2016 -0700
@@ -33,7 +33,7 @@
         prev = r
 
     # super crude initial version
-    for idx, ctx in entries:
+    for idx, ctx in entries[::-1]:
         if idx is None:
             symbol = '_'
             state = 'base'