# HG changeset patch # User Patrick Mezard # Date 1299930391 -3600 # Node ID 02f507ce61f212e01ad3e25e59193df04a099089 # Parent 4f5b269f4ce6fed8421b3048c724c18d79d908d0 test-help: test a sample of 'templates' topic help diff -r 4f5b269f4ce6 -r 02f507ce61f2 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 <