changeset 25515:e8075329c5fb

tests: test basic template support for status
author Matt Mackall <mpm@selenic.com>
date Wed, 10 Jun 2015 14:38:09 -0500
parents 9b1a8ce1f03b
children 1e37bd83dc66
files tests/test-status.t
diffstat 1 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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