tests/test-command-template.t
changeset 28958 77e566fe31ec
parent 28957 d813132ea361
child 29059 8eba4cdcfd81
--- a/tests/test-command-template.t	Sun Mar 27 20:59:36 2016 +0900
+++ b/tests/test-command-template.t	Sun Mar 27 21:05:55 2016 +0900
@@ -3756,6 +3756,13 @@
   default 6:d41e714fe50d
   foo     4:bbe44766e73d
 
+Aliases should honor HGPLAIN:
+
+  $ HGPLAIN= hg log -r0 -T 'nothing expanded:{rn}\n'
+  nothing expanded:
+  $ HGPLAINEXCEPT=templatealias hg log -r0 -T '{rn}\n'
+  0:1e4e1b8f71e0
+
 Unparsable alias:
 
   $ hg debugtemplate --config templatealias.bad='x(' -v '{bad}'