tests/test-command-template.t
changeset 21821 4a445dc5abff
parent 21820 cce404b0c918
child 21822 028a48105191
--- a/tests/test-command-template.t	Thu Jun 12 17:45:41 2014 -0700
+++ b/tests/test-command-template.t	Thu Jun 12 17:53:37 2014 -0700
@@ -1884,3 +1884,30 @@
   |  foo other 3
   o  foo line 1
      foo line 2
+
+Test startswith
+  $ hg log -Gv -R a --template "{startswith(desc)}"
+  hg: parse error: startswith expects two arguments
+  [255]
+
+  $ hg log -Gv -R a --template "{startswith('line', desc)}"
+  @
+  |
+  o
+  |
+  o
+  
+  o
+  |\
+  | o
+  | |
+  o |
+  |/
+  o
+  |
+  o
+  |
+  o
+  |
+  o  line 1
+     line 2