diff tests/test-status-color.t @ 28384:3356bf61fa25

formatter: make labels work with templated output To describe the bug this fix is addressing, one can do ``$ hg status -T "{label('red', path)}\n" --color=debug`` and observe that the label is not applied before my fix and applied with it.
author Kostia Balytskyi <ikostia@fb.com>
date Tue, 08 Mar 2016 04:08:33 -0800
parents 8e6d5b7317e6
children 1e184241de51
line wrap: on
line diff
--- a/tests/test-status-color.t	Tue Mar 08 14:32:03 2016 +0000
+++ b/tests/test-status-color.t	Tue Mar 08 04:08:33 2016 -0800
@@ -30,6 +30,15 @@
   [status.unknown|? ][status.unknown|b/in_b]
   [status.unknown|? ][status.unknown|in_root]
 
+hg status with template
+  $ hg status -T "{label('red', path)}\n" --color=debug
+  [red|a/1/in_a_1]
+  [red|a/in_a]
+  [red|b/1/in_b_1]
+  [red|b/2/in_b_2]
+  [red|b/in_b]
+  [red|in_root]
+
 hg status . in repo root:
 
   $ hg status --color=always .