test-command-template: add a short description of a temporary snippet stable
authorJordi Gutiérrez Hermoso <jordigh@octave.org>
Fri, 24 Apr 2015 14:17:14 -0400
branchstable
changeset 24852 515cd710df95
parent 24851 df0ce98c882f
child 24853 6518880de1b3
test-command-template: add a short description of a temporary snippet This snippet was introduced by c1cb6523e968. Its purpose seems a bit obscure without historical context.
tests/test-command-template.t
--- a/tests/test-command-template.t	Thu Apr 23 16:36:18 2015 +0100
+++ b/tests/test-command-template.t	Fri Apr 24 14:17:14 2015 -0400
@@ -94,12 +94,15 @@
   $ hg log -l1 --style default -T '{rev}\n'
   8
 
-Default style is like normal output:
+Add a commit with empty description, to ensure that the templates
+following below omit it properly.
 
   $ echo c >> c
   $ hg add c
   $ hg commit -qm ' '
 
+Default style is like normal output.
+
   $ hg log > log.out
   $ hg log --style default > style.out
   $ cmp log.out style.out || diff -u log.out style.out
@@ -139,6 +142,9 @@
 
   $ mv $HGRCPATH-bak $HGRCPATH
 
+Remove commit with empty commit message, so as to not pollute further
+tests.
+
   $ hg --config extensions.strip= strip -q .
 
 Revision with no copies (used to print a traceback):