diff -r 67d53e8e0c1a -r 3084687f7994 tests/test-topic.t --- a/tests/test-topic.t Wed Jun 10 17:40:50 2015 -0500 +++ b/tests/test-topic.t Wed Jun 10 17:52:07 2015 -0500 @@ -42,6 +42,25 @@ Still no topics $ hg topics +Test commit flag and help text + + $ echo stuff >> alpha + $ HGEDITOR=cat hg ci -t topicflag + + + HG: Enter commit message. Lines beginning with 'HG:' are removed. + HG: Leave message empty to abort commit. + HG: -- + HG: user: test + HG: topic 'topicflag' + HG: branch 'default' + HG: changed alpha + abort: empty commit message + [255] + $ hg revert alpha + $ hg topic + * topicflag + Make a topic $ hg topic narf $ hg topics