Mercurial > hg-stable
changeset 38628:539f9708b980
hook: narrow the 'priority' prefix check to align with the documentation
A prefix like 'priorityfoo' is meaningless, but `hg help config.hooks` calls out
the dot.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 07 Jul 2018 23:47:49 -0400 |
parents | 93ed193bc03e |
children | 38dfd308fe9d |
files | mercurial/hook.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hook.py Sat Jul 07 22:13:56 2018 -0400 +++ b/mercurial/hook.py Sat Jul 07 23:47:49 2018 -0400 @@ -181,7 +181,7 @@ """return all hooks items ready to be sorted""" hooks = {} for name, cmd in ui.configitems('hooks', untrusted=_untrusted): - if not name.startswith('priority'): + if not name.startswith('priority.'): priority = ui.configint('hooks', 'priority.%s' % name, 0) hooks[name] = (-priority, len(hooks), name, cmd) return hooks