# HG changeset patch # User Matt Mackall # Date 2015-06-10 19:38:09 # Node ID e8075329c5fbb651508777c15cb6bc9ae33b5dff # Parent 9b1a8ce1f03b1dd159038b2c8315ce629f1be452 tests: test basic template support for status diff --git a/tests/test-status.t b/tests/test-status.t --- a/tests/test-status.t +++ b/tests/test-status.t @@ -212,6 +212,33 @@ hg status -A: $ 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