diff hgext3rd/topic/stack.py @ 1905:3b42478ef017

stack: add "t" prefix to index in the output This make the existance and meaning of "t2" reference clearer.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 14 Mar 2016 18:40:00 +0000
parents f52c02bf47b7
children 5e9ce6310720
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Mon Mar 14 18:39:19 2016 +0000
+++ b/hgext3rd/topic/stack.py	Mon Mar 14 18:40:00 2016 +0000
@@ -20,7 +20,7 @@
         raise error.Abort(_('no active topic to list'))
     for idx, r in enumerate(getstack(repo, topic)):
         # super crude initial version
-        l = "%d: %s\n" % (idx, repo[r].description().splitlines()[0])
+        l = "t%d: %s\n" % (idx, repo[r].description().splitlines()[0])
         ui.write(l)
 
 # Copied from evolve 081605c2e9b6