[PATCH] tests: silence test-repo obsolete warning

timeless timeless at gmail.com
Wed May 11 11:06:54 EDT 2016


On Wed, May 11, 2016 at 10:58 AM, Pierre-Yves David
<pierre-yves.david at ens-lyon.org> wrote:
>> refactoring test-check-commit.t HGRCPATH bits as testrepo-helpers.sh
>> +++ b/tests/testrepo-helpers.sh Wed May 11 04:49:27 2016 +0000

> I'm not fan of the file name but I do no have a much better idea.

I hate the name. I was hoping *someone* would offer a better name.
This name conflicts w/ tab completion sufficiently badly, that i'd rather:

helper-testrepo.sh (it's a simple s///g + commit message change)

> However,
> we need a some comment in this file that explain its purpose.
> testrepo-helpers.sh is very generic and it is not clear this should be used
> of for test using Mercurial on the source repository only. I would not want
> people to start including it in all test files, leading evolve to be enabled
> everywhere.
>
> If you provide me with a comment in a reply to this email I'll probably
> include it in flight.

# The test-repo is a live hg repository which may have evolution
# markers created, e.g. when a ~/.hgrc enabled evolution.
# Tests are run using a custom HGRCPATH, which do not
# enable evolution markers by default.
# If test-repo includes evolution markers, and we do not
# enable evolution markers, hg will occasionally complain
# when it notices them, which disrupts tests resulting in
# sporadic failures.
# Since we aren't performing any write operations on the
# test-repo, there's no harm in telling hg that we support
# evolution markers, which is what the following lines
# for the hgrc file do:


More information about the Mercurial-devel mailing list