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

Laurent Charignon lcharignon at fb.com
Mon Jun 22 17:16:17 CDT 2015


> On Jun 22, 2015, at 3:07 PM, Pierre-Yves David <pierre-yves.david at ens-lyon.org> wrote:
> 
> 
> 
> 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?

Sure, if you want to.
I put it here because it was in the theme of "adding new helpers" so that the next patch only adds a test.

Thanks,

Laurent

> 
> -- 
> Pierre-Yves David



More information about the Mercurial-devel mailing list