comparison mercurial/configitems.py @ 46490:86b019899737 stable

hooks: forbid ':' in hook name The `:` character is a special separator in the config and it seems same do to the same for hooks. This is necessary to improve the experience around the HGPLAIN behavior change in 5.7. See next changesets for details. Differential Revision: https://phab.mercurial-scm.org/D9978
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 10 Feb 2021 21:05:05 +0100
parents 6e81446bf1d9
children 7289eac777ec
comparison
equal deleted inserted replaced
46489:fb6eca7b8c63 46490:86b019899737
1308 default=False, 1308 default=False,
1309 generic=True, 1309 generic=True,
1310 ) 1310 )
1311 coreconfigitem( 1311 coreconfigitem(
1312 b'hooks', 1312 b'hooks',
1313 b'.*', 1313 b'[^:]*',
1314 default=dynamicdefault, 1314 default=dynamicdefault,
1315 generic=True, 1315 generic=True,
1316 ) 1316 )
1317 coreconfigitem( 1317 coreconfigitem(
1318 b'hgweb-paths', 1318 b'hgweb-paths',