[PATCH 2 of 2] - Add tests for template keyword 'children'

Jason Harris jason at jasonfharris.com
Sat Jul 3 01:48:34 CDT 2010


# HG changeset patch
# User jfh <jason at jasonfharris.com>
# Date 1278138503 -7200
# Node ID 359483f43ffb2e0bd311f80531efe0aebb8f6293
# Parent  fd099575be1833727adb48029d6f10fb1f35e11c
- Add tests for template keyword 'children'

diff --git a/tests/test-command-template b/tests/test-command-template
--- a/tests/test-command-template
+++ b/tests/test-command-template
@@ -125,6 +125,7 @@
hg log --template '{desc|firstline}\n'
hg log --template '{node|short}\n'
hg log --template '<changeset author="{author|xmlescape}"/>\n'
+hg log --template '{children}\n'

echo '# formatnode filter works'
echo '#  quiet'
diff --git a/tests/test-command-template.out b/tests/test-command-template.out
--- a/tests/test-command-template.out
+++ b/tests/test-command-template.out
@@ -1018,6 +1018,15 @@
<changeset author="other at place"/>
<changeset author="A. N. Other &lt;other at place&gt;"/>
<changeset author="User Name &lt;user at hostname&gt;"/>
+
+8:95c24699272e
+
+6:c7b487c6c50e
+6:c7b487c6c50e
+4:32a18f097fcc 5:13207e5a10d9
+3:10e46f2dcbf4
+2:97054abb4ab8
+1:b608e9d1a3f0
# formatnode filter works
#  quiet
1e4e1b8f71e0




More information about the Mercurial-devel mailing list