[PATCH 1 of 2 evolve-ext] test-evolve-bumped: improve tests legibility

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Jun 22 17:07:52 CDT 2015



On 06/19/2015 06:38 PM, Laurent Charignon wrote:
> # HG changeset patch
> # User Laurent Charignon <lcharignon at fb.com>
> # Date 1434762991 25200
> #      Fri Jun 19 18:16:31 2015 -0700
> # Node ID bd83396dd93f1c13efdba3140c2a92c6aed2be9f
> # Parent  8794a4680bdd78fe9e452611797f9b018fc031df
> test-evolve-bumped: improve tests legibility
>
> This patch introduces in test-evolve-bumped some of the test helpers that we
> use in other tests to make the code more legible.
>
> diff --git a/tests/test-evolve-bumped.t b/tests/test-evolve-bumped.t
> --- a/tests/test-evolve-bumped.t
> +++ b/tests/test-evolve-bumped.t
> @@ -1,6 +1,11 @@
>     $ hg init public
>     $ cd public
>     $ echo a > a
> +  $ mkcommit() {
> +  >    echo "$1" > "$1"
> +  >    hg add "$1"
> +  >    hg ci -m "add $1"
> +  > }

This want to be in the next changesets, doesn't it?

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list