Mercurial > evolve
diff hgext3rd/topic/stack.py @ 4656:dbf676c86244
stack: always provide (full) node hash to non-default --template
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 17 May 2019 17:50:25 +0800 |
parents | bb0a5beb0ad8 |
children | c24dabf8e848 |
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py Fri May 17 17:42:06 2019 +0800 +++ b/hgext3rd/topic/stack.py Fri May 17 17:50:25 2019 +0800 @@ -365,8 +365,10 @@ fm.write('stack_index', '%s%%d' % prefix, idx, label=labelsgen('topic.stack.index', states)) if ui.verbose: - fm.write('node', '(%s)', short(ctx.node()), + fm.write('node', '(%s)', fm.hexfunc(ctx.node()), label=labelsgen('topic.stack.shortnode', states)) + else: + fm.data(node=fm.hexfunc(ctx.node())) fm.write('symbol', '%s', symbol, label=labelsgen('topic.stack.state', states)) fm.plain(' ')