[PATCH] test-pager: add a test for pager with color enabled

Yuya Nishihara yuya at tcha.org
Tue Mar 15 11:16:48 EDT 2016


On Mon, 14 Mar 2016 12:44:50 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1457746489 18000
> #      Fri Mar 11 20:34:49 2016 -0500
> # Node ID 3b58750f9415a43942f73ff51f80f192b09eb30b
> # Parent  3c90090320ad1c9017a9f14019a19f05442f8866
> # EXP-Topic pager
> test-pager: add a test for pager with color enabled

Queued this, thanks.

> diff --git a/tests/test-pager.t b/tests/test-pager.t
> --- a/tests/test-pager.t
> +++ b/tests/test-pager.t
> @@ -151,3 +151,27 @@ doesn't result in history being paged.
>    date:        Thu Jan 01 00:00:00 1970 +0000
>    summary:     modify a 9
>    
> +
> +Pager with color enabled allows colors to come through by default,
> +even though stdout is no longer a tty.
> +  $ cat >> $HGRCPATH <<EOF
> +  > [extensions]
> +  > color=

I've copied mode=ansi bits from test-status-color.t to avoid possible Windows
issue.

  > [color]
  > mode = ansi


More information about the Mercurial-devel mailing list