Mercurial > public > mercurial-scm > hg
diff tests/test-status-color.t @ 22463:1c4ae0f6a30f
color: enable debug option to show labels
This is a debug option for showing labels. This can be helpful for
knowing which labels are available for colouring or to see the output
when defining your own templates. A couple of tests are included.
author | Jordi Guti?rrez Hermoso <jordigh@octave.org> |
---|---|
date | Sun, 24 Aug 2014 17:40:27 -0400 |
parents | 75aaae8ad660 |
children | 964dd1c491ca |
line wrap: on
line diff
--- a/tests/test-status-color.t Sun Aug 24 17:35:36 2014 -0400 +++ b/tests/test-status-color.t Sun Aug 24 17:40:27 2014 -0400 @@ -20,6 +20,14 @@ \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc) \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc) + $ hg status --color=debug + status.unknown(? )status.unknown(a/1/in_a_1) + status.unknown(? )status.unknown(a/in_a) + status.unknown(? )status.unknown(b/1/in_b_1) + status.unknown(? )status.unknown(b/2/in_b_2) + status.unknown(? )status.unknown(b/in_b) + status.unknown(? )status.unknown(in_root) + hg status . in repo root: $ hg status --color=always . @@ -137,6 +145,13 @@ adding deleted adding modified adding removed + $ hg log --color=debug + [log.changeset changeset.draft](changeset: 0:389aef86a55e) + log.tag(tag: tip) + log.user(user: test) + log.date(date: Thu Jan 01 00:00:00 1970 +0000) + log.summary(summary: initial checkin) + $ touch modified added unknown ignored $ hg add added $ hg remove removed