tests/test-command-template.t
changeset 30083 bd1f043d1ea3
parent 30008 e83f89d3b1f7
child 30088 d1f5f158768e
--- a/tests/test-command-template.t	Sat Oct 08 19:11:19 2016 +0200
+++ b/tests/test-command-template.t	Sat Oct 08 15:24:26 2016 +0200
@@ -3521,6 +3521,15 @@
   0
   
 
+Test relpath function
+
+  $ hg log -r0 -T '{files % "{file|relpath}\n"}'
+  a
+  $ cd ..
+  $ hg log -R r -r0 -T '{files % "{file|relpath}\n"}'
+  r/a (glob)
+  $ cd r
+
 Test active bookmark templating
 
   $ hg book foo