[PATCH 1 of 2] tests: duplicate test for pager for old extension and for in-core pager

Yuya Nishihara yuya at tcha.org
Tue Mar 14 04:47:08 EDT 2017


On Tue, 14 Mar 2017 00:03:52 -0700, Martin von Zweigbergk via Mercurial-devel wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1489466579 25200
> #      Mon Mar 13 21:42:59 2017 -0700
> # Node ID d17402c07698443c13b082df8a8635a82b83d097
> # Parent  3d3109339b57341b333c1112beb41dd281fa944a
> tests: duplicate test for pager for old extension and for in-core pager
> 
> When the old pager extension is enabled, I think we should try to be
> as BC as reasonable. To help with that, this patch brings back
> test-pager.t as of 65a3b4d67a65 (pager: add a test of --pager=no
> functionality, 2017-02-06), but under the name test-pager-legacy.t
> However, since the behavior has changed in a few cases (notably by no
> longer respecting pager.attend), the file is modified to work with the
> current version. We will recover some lost BC in coming patches.
> 
> Also, to make sure the in-core pager does not depend on the pager
> extension being enabled, this patch disables the extension in
> test-pager.t. It turns out that pager.attend-$cmd was only supported
> when the pager extension was enabled, so the tests are updated to
> reflect that. We will need to decide what to do with these.
> 
> diff -r 3d3109339b57 -r d17402c07698 tests/test-pager-legacy.t
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/tests/test-pager-legacy.t	Mon Mar 13 21:42:59 2017 -0700

I guess the copy history would be lost. Can you resend with diff.git=True?


More information about the Mercurial-devel mailing list