diff tests/test-template-functions.t @ 39367:83f8f7b9fa60

templatekw: alias {file} of files list to {path} This is a part of the name unification. All {path}s will be changed to repository-absolute (i.e. canonical) paths. https://www.mercurial-scm.org/wiki/GenericTemplatingPlan#Dictionary
author Yuya Nishihara <yuya@tcha.org>
date Sun, 05 Aug 2018 16:14:18 +0900
parents a01200b25da6
children 5abc47d4ca6b
line wrap: on
line diff
--- a/tests/test-template-functions.t	Wed Aug 29 18:52:09 2018 +0300
+++ b/tests/test-template-functions.t	Sun Aug 05 16:14:18 2018 +0900
@@ -1198,6 +1198,12 @@
   
   0
   
+
+  $ hg log -l1 -T "{files('aa') % '{file}\n'}"
+  aa
+  $ hg log -l1 -T "{files('aa') % '{path}\n'}"
+  aa
+
   $ hg rm a
   $ hg log -r "wdir()" -T "{rev}\n{join(files('*'), '\n')}\n"
   2147483647