[PATCH 1 of 2 STABLE v2] test-command-template: add a short description of a temporary snippet
Jordi Gutiérrez Hermoso
jordigh at octave.org
Fri Apr 24 18:57:41 UTC 2015
# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh at octave.org>
# Date 1429899434 14400
# Fri Apr 24 14:17:14 2015 -0400
# Branch stable
# Node ID c5587e1f00ff6b2294eaec42488318bd4353c43c
# Parent ca1ad8ef38be225caec42564502aafe43cae173d
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.
diff --git a/tests/test-command-template.t b/tests/test-command-template.t
--- a/tests/test-command-template.t
+++ b/tests/test-command-template.t
@@ -94,12 +94,15 @@ Template should precede style option
$ 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 @@ Default style should also preserve color
$ 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):
More information about the Mercurial-devel
mailing list