##// END OF EJS Templates
hooks: forbid ':' in hook name...
marmoute -
r47240:86b01989 stable
parent child Browse files
Show More
@@ -1310,7 +1310,7 b' coreconfigitem('
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 )
@@ -224,7 +224,11 b' def _hookitems(ui, _untrusted=False):'
224 """return all hooks items ready to be sorted"""
224 """return all hooks items ready to be sorted"""
225 hooks = {}
225 hooks = {}
226 for name, cmd in ui.configitems(b'hooks', untrusted=_untrusted):
226 for name, cmd in ui.configitems(b'hooks', untrusted=_untrusted):
227 if name.startswith(b'priority.') or name.startswith(b'tonative.'):
227 if (
228 name.startswith(b'priority.')
229 or name.startswith(b'tonative.')
230 or b':' in name
231 ):
228 continue
232 continue
229
233
230 priority = ui.configint(b'hooks', b'priority.%s' % name, 0)
234 priority = ui.configint(b'hooks', b'priority.%s' % name, 0)
General Comments 0
You need to be logged in to leave comments. Login now