Mercurial > evolve
comparison 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 |
comparison
equal
deleted
inserted
replaced
4655:bb0a5beb0ad8 | 4656:dbf676c86244 |
---|---|
363 fm.plain(' ') | 363 fm.plain(' ') |
364 else: | 364 else: |
365 fm.write('stack_index', '%s%%d' % prefix, idx, | 365 fm.write('stack_index', '%s%%d' % prefix, idx, |
366 label=labelsgen('topic.stack.index', states)) | 366 label=labelsgen('topic.stack.index', states)) |
367 if ui.verbose: | 367 if ui.verbose: |
368 fm.write('node', '(%s)', short(ctx.node()), | 368 fm.write('node', '(%s)', fm.hexfunc(ctx.node()), |
369 label=labelsgen('topic.stack.shortnode', states)) | 369 label=labelsgen('topic.stack.shortnode', states)) |
370 else: | |
371 fm.data(node=fm.hexfunc(ctx.node())) | |
370 fm.write('symbol', '%s', symbol, | 372 fm.write('symbol', '%s', symbol, |
371 label=labelsgen('topic.stack.state', states)) | 373 label=labelsgen('topic.stack.state', states)) |
372 fm.plain(' ') | 374 fm.plain(' ') |
373 fm.write('desc', '%s', ctx.description().splitlines()[0], | 375 fm.write('desc', '%s', ctx.description().splitlines()[0], |
374 label=labelsgen('topic.stack.desc', states)) | 376 label=labelsgen('topic.stack.desc', states)) |