tests/test-command-template.t
changeset 28177 ab8107c923b4
parent 27994 90cff855ae1c
child 28209 8ddf893560fa
--- a/tests/test-command-template.t	Sat Feb 06 19:16:12 2016 +0900
+++ b/tests/test-command-template.t	Fri Feb 12 18:08:53 2016 +0900
@@ -3310,6 +3310,13 @@
   0 a
   p 
 
+a revset item must be evaluated as an integer revision, not an offset from tip
+
+  $ hg log -l 1 -T '{revset("null") % "{rev}:{node|short}"}\n'
+  -1:000000000000
+  $ hg log -l 1 -T '{revset("%s", "null") % "{rev}:{node|short}"}\n'
+  -1:000000000000
+
 Test active bookmark templating
 
   $ hg book foo