test-help: test a sample of 'templates' topic help
authorPatrick Mezard <pmezard@gmail.com>
Sat, 12 Mar 2011 12:46:31 +0100
changeset 13584 02f507ce61f2
parent 13582 4f5b269f4ce6
child 13585 2e80d495592a
test-help: test a sample of 'templates' topic help
tests/test-help.t
--- a/tests/test-help.t	Sat Mar 12 12:15:36 2011 +0100
+++ b/tests/test-help.t	Sat Mar 12 12:46:31 2011 +0100
@@ -765,6 +765,14 @@
       working directory is checked out, it is equivalent to null. If an
       uncommitted merge is in progress, "." is the revision of the first parent.
 
+Test templating help
+
+  $ hg help templating | egrep '(desc|diffstat|firstline|nonempty)  '
+      desc        String. The text of the changeset description.
+      diffstat    String. Statistics of changes with the following format:
+      firstline   Any text. Returns the first line of text.
+      nonempty    Any text. Returns '(none)' if the string is empty.
+
 Test help hooks
 
   $ cat > helphook1.py <<EOF