tests/test-command-template.t
branchstable
changeset 35009 d1aae6d4efc5
parent 34866 1644623ab096
child 35751 6d65cef5b038
--- a/tests/test-command-template.t	Sun Jan 07 15:56:58 2018 +0900
+++ b/tests/test-command-template.t	Sun Jan 07 12:07:29 2018 +0900
@@ -2218,6 +2218,11 @@
   $ cd ..
   $ rm -rf unstable-hash
 
+Filename filters:
+
+  $ hg debugtemplate '{"foo/bar"|basename}|{"foo/"|basename}|{"foo"|basename}|\n'
+  bar||foo|
+
 Add a dummy commit to make up for the instability of the above:
 
   $ echo a > a