changeset 24852:515cd710df95 stable

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.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 24 Apr 2015 14:17:14 -0400
parents df0ce98c882f
children 6518880de1b3
files tests/test-command-template.t
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):