equal
deleted
inserted
replaced
179 |
179 |
180 def _hookitems(ui, _untrusted=False): |
180 def _hookitems(ui, _untrusted=False): |
181 """return all hooks items ready to be sorted""" |
181 """return all hooks items ready to be sorted""" |
182 hooks = {} |
182 hooks = {} |
183 for name, cmd in ui.configitems('hooks', untrusted=_untrusted): |
183 for name, cmd in ui.configitems('hooks', untrusted=_untrusted): |
184 if not name.startswith('priority'): |
184 if not name.startswith('priority.'): |
185 priority = ui.configint('hooks', 'priority.%s' % name, 0) |
185 priority = ui.configint('hooks', 'priority.%s' % name, 0) |
186 hooks[name] = (-priority, len(hooks), name, cmd) |
186 hooks[name] = (-priority, len(hooks), name, cmd) |
187 return hooks |
187 return hooks |
188 |
188 |
189 _redirect = False |
189 _redirect = False |