tests/test-debugcommands.t
branchstable
changeset 37823 0e9ddab2bac2
parent 37813 58bbd14b0c62
child 38444 a0c3d83d5f04
--- a/tests/test-debugcommands.t	Wed Apr 25 14:51:20 2018 -0700
+++ b/tests/test-debugcommands.t	Thu Apr 26 21:24:13 2018 +0900
@@ -333,6 +333,19 @@
   .hg/cache/rbc-names-v1
   .hg/cache/branch2-served
 
+Test debugcolor
+
+#if no-windows
+  $ hg debugcolor --style --color always | egrep 'mode|style|log\.'
+  color mode: ansi
+  available style:
+  \x1b[0;33mlog.changeset\x1b[0m:                      \x1b[0;33myellow\x1b[0m (esc)
+#endif
+
+  $ hg debugcolor --style --color never
+  color mode: None
+  available style:
+
   $ cd ..
 
 Test internal debugstacktrace command