comparison 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
comparison
equal deleted inserted replaced
1904:f52c02bf47b7 1905:3b42478ef017
18 topic = repo.currenttopic 18 topic = repo.currenttopic
19 if not topic: 19 if not topic:
20 raise error.Abort(_('no active topic to list')) 20 raise error.Abort(_('no active topic to list'))
21 for idx, r in enumerate(getstack(repo, topic)): 21 for idx, r in enumerate(getstack(repo, topic)):
22 # super crude initial version 22 # super crude initial version
23 l = "%d: %s\n" % (idx, repo[r].description().splitlines()[0]) 23 l = "t%d: %s\n" % (idx, repo[r].description().splitlines()[0])
24 ui.write(l) 24 ui.write(l)
25 25
26 # Copied from evolve 081605c2e9b6 26 # Copied from evolve 081605c2e9b6
27 27
28 def _orderrevs(repo, revs): 28 def _orderrevs(repo, revs):