Show More
@@ -206,7 +206,7 b' def _allhooks(ui):' | |||||
206 | # in that section uses "_fromuntrusted" as its command. |
|
206 | # in that section uses "_fromuntrusted" as its command. | |
207 | untrustedhooks = _hookitems(ui, _untrusted=True) |
|
207 | untrustedhooks = _hookitems(ui, _untrusted=True) | |
208 | for name, value in untrustedhooks.items(): |
|
208 | for name, value in untrustedhooks.items(): | |
209 |
trustedvalue = hooks.get(name, ( |
|
209 | trustedvalue = hooks.get(name, ((), (), name, _fromuntrusted)) | |
210 | if value != trustedvalue: |
|
210 | if value != trustedvalue: | |
211 | (lp, lo, lk, lv) = trustedvalue |
|
211 | (lp, lo, lk, lv) = trustedvalue | |
212 | hooks[name] = (lp, lo, lk, _fromuntrusted) |
|
212 | hooks[name] = (lp, lo, lk, _fromuntrusted) | |
@@ -222,7 +222,7 b' def _hookitems(ui, _untrusted=False):' | |||||
222 | continue |
|
222 | continue | |
223 |
|
223 | |||
224 | priority = ui.configint(b'hooks', b'priority.%s' % name, 0) |
|
224 | priority = ui.configint(b'hooks', b'priority.%s' % name, 0) | |
225 | hooks[name] = (-priority, len(hooks), name, cmd) |
|
225 | hooks[name] = ((-priority,), (len(hooks),), name, cmd) | |
226 | return hooks |
|
226 | return hooks | |
227 |
|
227 | |||
228 |
|
228 |
General Comments 0
You need to be logged in to leave comments.
Login now