branch | stable |
changeset 46490 | 86b019899737 |
parent 46137 | 8fa87bce4929 |
child 46492 | 7289eac777ec |
--- a/mercurial/hook.py Wed Feb 10 21:46:29 2021 +0100 +++ b/mercurial/hook.py Wed Feb 10 21:05:05 2021 +0100 @@ -224,7 +224,11 @@ """return all hooks items ready to be sorted""" hooks = {} for name, cmd in ui.configitems(b'hooks', untrusted=_untrusted): - if name.startswith(b'priority.') or name.startswith(b'tonative.'): + if ( + name.startswith(b'priority.') + or name.startswith(b'tonative.') + or b':' in name + ): continue priority = ui.configint(b'hooks', b'priority.%s' % name, 0)