Show More
@@ -72,10 +72,11 b' def buildmatch(ui, repo, user, key):' | |||||
72 |
|
72 | |||
73 |
|
73 | |||
74 | def hook(ui, repo, hooktype, node=None, source=None, **kwargs): |
|
74 | def hook(ui, repo, hooktype, node=None, source=None, **kwargs): | |
75 |
if hooktype |
|
75 | if hooktype not in ['pretxnchangegroup', 'pretxncommit']: | |
76 | raise util.Abort(_('config error - hook type "%s" cannot stop ' |
|
76 | raise util.Abort(_('config error - hook type "%s" cannot stop ' | |
77 | 'incoming changesets') % hooktype) |
|
77 | 'incoming changesets nor commits') % hooktype) | |
78 | if source not in ui.config('acl', 'sources', 'serve').split(): |
|
78 | if (hooktype == 'pretxnchangegroup' and | |
|
79 | source not in ui.config('acl', 'sources', 'serve').split()): | |||
79 | ui.debug('acl: changes have source "%s" - skipping\n' % source) |
|
80 | ui.debug('acl: changes have source "%s" - skipping\n' % source) | |
80 | return |
|
81 | return | |
81 |
|
82 |
General Comments 0
You need to be logged in to leave comments.
Login now