[PATCH RFC] check-commit: add magic string to bypass check-commit

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Dec 21 17:22:46 EST 2016



On 12/21/2016 10:47 PM, David Soria Parra wrote:
>
>
>> -----Original Message-----
>> From: Pierre-Yves David [mailto:pierre-yves.david at ens-lyon.org]
>>
>> I would prefer to have that exclusion logic in 'test-check-commit.t',
>> These commit still fails our commit checks, but we skip them from
>> automated testing.
>>
>> Just add "and not desc('#no-check-commit')" to the revset there
>
> Seems reasonable, note however it changes the behavior as `# no-check-commit`
> can appear anywhere when using `desc()` while my implementation searches for it
> at the starting of a line.

The regex to feed 'desc()' with in order to mark start of line only is 
left as an exercise with the reader ;-)

Cheers,

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list