tests/test-command-template.t
changeset 19058 d8d548d868d3
parent 18970 3cdb6f2f6789
child 19127 d982edcfe7f0
--- a/tests/test-command-template.t	Wed Apr 17 03:41:34 2013 +0200
+++ b/tests/test-command-template.t	Wed Apr 10 19:27:49 2013 -0500
@@ -1531,3 +1531,7 @@
   $ hg log -R latesttag -r tip --template 'modified files: {file_mods % " {file}\n"}\n'
   modified files:  .hgtags
   
+Test the sub function of templating for expansion:
+
+  $ hg log -R latesttag -r 10 --template '{sub("[0-9]", "x", "{rev}")}\n'
+  xx