Patchwork [1,of,3] pager: stop using the color extension in tests

login
register
mail settings
Submitter Pierre-Yves David
Date April 16, 2017, 12:55 a.m.
Message ID <276dd8ba6084f1463fac.1492304125@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20234/
State Accepted
Headers show

Comments

Pierre-Yves David - April 16, 2017, 12:55 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1492303686 -7200
#      Sun Apr 16 02:48:06 2017 +0200
# Node ID 276dd8ba6084f1463faca2b57914b8fc3c96c776
# Parent  2bf73e351eb1bb086e30c9f58543817fb05e558c
# EXP-Topic color
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 276dd8ba6084
pager: stop using the color extension in tests

The feature is in core so let us use the core config knob directly.

Patch

diff --git a/tests/test-pager-legacy.t b/tests/test-pager-legacy.t
--- a/tests/test-pager-legacy.t
+++ b/tests/test-pager-legacy.t
@@ -158,8 +158,8 @@  Pager should not start if stdout is not 
 Pager with color enabled allows colors to come through by default,
 even though stdout is no longer a tty.
   $ cat >> $HGRCPATH <<EOF
-  > [extensions]
-  > color=
+  > [ui]
+  > color = yes
   > [color]
   > mode = ansi
   > EOF
diff --git a/tests/test-pager.t b/tests/test-pager.t
--- a/tests/test-pager.t
+++ b/tests/test-pager.t
@@ -96,8 +96,8 @@  be silently lost.)
 Pager with color enabled allows colors to come through by default,
 even though stdout is no longer a tty.
   $ cat >> $HGRCPATH <<EOF
-  > [extensions]
-  > color=
+  > [ui]
+  > color = yes
   > [color]
   > mode = ansi
   > EOF