Mercurial > evolve
diff tests/test-topic-stack.t @ 2750:bd3824d1b795
stack: show short node of changesets in `hg stack -v`
After this patch, hg stack -v shows short nodes for changesets which have topic
index, i.e. excluding the bases except t0.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 14 Jul 2017 07:19:15 +0530 |
parents | f19b314d8475 |
children | 1627153804dc a789b9d5b60c |
line wrap: on
line diff
--- a/tests/test-topic-stack.t Fri Jul 21 01:04:32 2017 +0200 +++ b/tests/test-topic-stack.t Fri Jul 14 07:19:15 2017 +0530 @@ -77,6 +77,14 @@ t2: c_d t1: c_c t0^ c_b (base) + $ hg stack -v + ### topic: foo + ### branch: default + t4(6559e6d93aea)@ c_f (current) + t3(0f9ac936c87d): c_e + t2(e629654d7050): c_d + t1(8522f9e3fee9): c_c + t0(ea705abc4f51)^ c_b (base) $ hg stack -Tjson | python -m json.tool [ { @@ -125,6 +133,59 @@ "topic.stack.state.symbol": "^" } ] + $ hg stack -v -Tjson | python -m json.tool + [ + { + "isentry": true, + "topic.stack.desc": "c_f", + "topic.stack.index": 4, + "topic.stack.shortnode": "6559e6d93aea", + "topic.stack.state": [ + "current" + ], + "topic.stack.state.symbol": "@" + }, + { + "isentry": true, + "topic.stack.desc": "c_e", + "topic.stack.index": 3, + "topic.stack.shortnode": "0f9ac936c87d", + "topic.stack.state": [ + "clean" + ], + "topic.stack.state.symbol": ":" + }, + { + "isentry": true, + "topic.stack.desc": "c_d", + "topic.stack.index": 2, + "topic.stack.shortnode": "e629654d7050", + "topic.stack.state": [ + "clean" + ], + "topic.stack.state.symbol": ":" + }, + { + "isentry": true, + "topic.stack.desc": "c_c", + "topic.stack.index": 1, + "topic.stack.shortnode": "8522f9e3fee9", + "topic.stack.state": [ + "clean" + ], + "topic.stack.state.symbol": ":" + }, + { + "isentry": false, + "topic.stack.desc": "c_b", + "topic.stack.index": 0, + "topic.stack.shortnode": "ea705abc4f51", + "topic.stack.state": [ + "base" + ], + "topic.stack.state.symbol": "^" + } + ] error case, nothing to list