Mercurial > evolve
changeset 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 |
files | hgext3rd/topic/stack.py tests/test-topic-stack.t |
diffstat | 2 files changed, 13 insertions(+), 6 deletions(-) [+] |
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(' ')
--- a/tests/test-topic-stack.t Fri May 17 17:42:06 2019 +0800 +++ b/tests/test-topic-stack.t Fri May 17 17:50:25 2019 +0800 @@ -109,6 +109,7 @@ { "desc": "c_f", "isentry": true, + "node": "6559e6d93aeadba940874f54f106c61931b5b8cf", "stack_index": 4, "state": [ "current" @@ -118,6 +119,7 @@ { "desc": "c_e", "isentry": true, + "node": "0f9ac936c87d1d991011862aff4e86d0c3300a89", "stack_index": 3, "state": [ "clean" @@ -127,6 +129,7 @@ { "desc": "c_d", "isentry": true, + "node": "e629654d70505107cca3d12782d9c5a50d8fb9c8", "stack_index": 2, "state": [ "clean" @@ -136,6 +139,7 @@ { "desc": "c_c", "isentry": true, + "node": "8522f9e3fee92d4ec4e688ac3fbd2ee0f8fd5036", "stack_index": 1, "state": [ "clean" @@ -145,6 +149,7 @@ { "desc": "c_b", "isentry": false, + "node": "ea705abc4f51e26d356ed94b3443e8c19b76cedf", "stack_index": 0, "state": [ "base" @@ -157,7 +162,7 @@ { "desc": "c_f", "isentry": true, - "node": "6559e6d93aea", + "node": "6559e6d93aeadba940874f54f106c61931b5b8cf", "stack_index": 4, "state": [ "current" @@ -167,7 +172,7 @@ { "desc": "c_e", "isentry": true, - "node": "0f9ac936c87d", + "node": "0f9ac936c87d1d991011862aff4e86d0c3300a89", "stack_index": 3, "state": [ "clean" @@ -177,7 +182,7 @@ { "desc": "c_d", "isentry": true, - "node": "e629654d7050", + "node": "e629654d70505107cca3d12782d9c5a50d8fb9c8", "stack_index": 2, "state": [ "clean" @@ -187,7 +192,7 @@ { "desc": "c_c", "isentry": true, - "node": "8522f9e3fee9", + "node": "8522f9e3fee92d4ec4e688ac3fbd2ee0f8fd5036", "stack_index": 1, "state": [ "clean" @@ -197,7 +202,7 @@ { "desc": "c_b", "isentry": false, - "node": "ea705abc4f51", + "node": "ea705abc4f51e26d356ed94b3443e8c19b76cedf", "stack_index": 0, "state": [ "base"