Show More
@@ -162,12 +162,12 b' def _exthook(ui, repo, name, cmd, args, ' | |||||
162 | return r |
|
162 | return r | |
163 |
|
163 | |||
164 | def _allhooks(ui): |
|
164 | def _allhooks(ui): | |
165 |
hooks = |
|
165 | hooks = {} | |
166 | for name, cmd in ui.configitems('hooks'): |
|
166 | for name, cmd in ui.configitems('hooks'): | |
167 | if not name.startswith('priority'): |
|
167 | if not name.startswith('priority'): | |
168 | priority = ui.configint('hooks', 'priority.%s' % name, 0) |
|
168 | priority = ui.configint('hooks', 'priority.%s' % name, 0) | |
169 |
hooks |
|
169 | hooks[name] = (-priority, len(hooks), name, cmd) | |
170 | return [(k, v) for p, o, k, v in sorted(hooks)] |
|
170 | return [(k, v) for p, o, k, v in sorted(hooks.values())] | |
171 |
|
171 | |||
172 | _redirect = False |
|
172 | _redirect = False | |
173 | def redirect(state): |
|
173 | def redirect(state): |
General Comments 0
You need to be logged in to leave comments.
Login now