Mercurial > evolve
diff tests/test-topic.t @ 4060:54eade86ac31
topic: handle revsets passed to topic() revset
This handles cases when the argument can't be interpreted as a string at all.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 30 Aug 2018 20:21:17 +0800 |
parents | dda5b2134b32 |
children | ad4194399b47 |
line wrap: on
line diff
--- a/tests/test-topic.t Thu Aug 30 19:13:56 2018 +0800 +++ b/tests/test-topic.t Thu Aug 30 20:21:17 2018 +0800 @@ -736,10 +736,27 @@ summary: start on fran +Using revsets in topic() + $ tlog() { + > hg log -T '{rev}: {topic}\n' -r "$1" + > } + + $ tlog 'topic(head())' + 9: fran + $ tlog 'topic(:)' + 9: fran + $ tlog 'topic(all())' + 9: fran + $ tlog 'topic(topic(fran))' + 9: fran + $ tlog 'topic(wdir())' + 9: fran + Deactivate the topic. $ hg topics * fran (1 changesets) $ hg topics --clear + $ hg log -r 'topic(wdir())' $ echo fran? >> beta $ hg ci -m 'fran?' created new head