tests: test basic template support for status
authorMatt Mackall <mpm@selenic.com>
Wed, 10 Jun 2015 14:38:09 -0500
changeset 25515 e8075329c5fb
parent 25514 9b1a8ce1f03b
child 25516 1e37bd83dc66
tests: test basic template support for status
tests/test-status.t
--- a/tests/test-status.t	Wed Jun 10 14:35:05 2015 -0500
+++ b/tests/test-status.t	Wed Jun 10 14:38:09 2015 -0500
@@ -212,6 +212,33 @@
   $ mkdir ignoreddir
   $ touch ignoreddir/file
 
+Test templater support:
+
+  $ hg status -AT "[{status}]\t{if(copy, '{copy} -> ')}{path}\n"
+  [M]	.hgignore
+  [A]	added
+  [A]	modified -> copied
+  [R]	removed
+  [!]	deleted
+  [?]	ignored
+  [?]	unknown
+  [I]	ignoreddir/file
+  [C]	modified
+  $ hg status -AT default
+  M .hgignore
+  A added
+  A copied
+    modified
+  R removed
+  ! deleted
+  ? ignored
+  ? unknown
+  I ignoreddir/file
+  C modified
+  $ hg status -T compact
+  abort: "status" not in template map
+  [255]
+
 hg status ignoreddir/file:
 
   $ hg status ignoreddir/file