[PATCH] tests: test experimental.spacemovesdown config for commit -i

Augie Fackler raf at durin42.com
Tue Jan 17 15:36:09 EST 2017


On Tue, Jan 17, 2017 at 11:00:46PM +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6 at dwimlabs.net>
> # Date 1484631893 -28800
> #      Tue Jan 17 13:44:53 2017 +0800
> # Node ID a1f5ccddc1c0822ae12d380b7a91728ab8267a78
> # Parent  4c0a5a256ae806fab18d56b3c44a8d1c98a40ce0
> tests: test experimental.spacemovesdown config for commit -i

Queued, thanks.

>
> The feature is still very experimental, but at least its behavior is captured
> in the test.
>
> diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t
> --- a/tests/test-commit-interactive-curses.t
> +++ b/tests/test-commit-interactive-curses.t
> @@ -318,6 +318,25 @@ reflect this edition.
>    foo
>    hello world
>    lower
> +
> +Check spacemovesdown
> +
> +  $ cat <<EOF >> $HGRCPATH
> +  > [experimental]
> +  > spacemovesdown = true
> +  > EOF
> +  $ cat <<EOF >testModeCommands
> +  > TOGGLE
> +  > TOGGLE
> +  > X
> +  > EOF
> +  $ hg status -q
> +  M b
> +  M x
> +  $ hg commit -i -m "nothing to commit?" -d "0 0"
> +  no changes to record
> +  [1]
> +
>  Check ui.interface logic for the chunkselector
>
>  The default interface is text
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list