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