diff tests/test-annotate.t @ 36988:66e64681e0a8

annotate: add support for template keywords and functions depending on ctx
author Yuya Nishihara <yuya@tcha.org>
date Sun, 11 Mar 2018 21:36:28 +0900
parents 12492794bf8c
children a8a902d7176e
line wrap: on
line diff
--- a/tests/test-annotate.t	Sun Mar 11 21:26:15 2018 +0900
+++ b/tests/test-annotate.t	Sun Mar 11 21:36:28 2018 +0900
@@ -71,6 +71,11 @@
    }
   ]
 
+log-like templating
+
+  $ hg annotate -T'{lines % "{rev} {node|shortest}: {line}"}' a
+  0 8435: a
+
   $ cat <<EOF >>a
   > a
   > a