Show More
@@ -218,6 +218,9 b' configitem = registrar.configitem(config' | |||||
218 | configitem('acl', 'config', |
|
218 | configitem('acl', 'config', | |
219 | default=None, |
|
219 | default=None, | |
220 | ) |
|
220 | ) | |
|
221 | configitem('acl', 'sources', | |||
|
222 | default='serve', | |||
|
223 | ) | |||
221 |
|
224 | |||
222 | def _getusers(ui, group): |
|
225 | def _getusers(ui, group): | |
223 |
|
226 | |||
@@ -289,7 +292,7 b' def hook(ui, repo, hooktype, node=None, ' | |||||
289 | raise error.Abort(_('config error - hook type "%s" cannot stop ' |
|
292 | raise error.Abort(_('config error - hook type "%s" cannot stop ' | |
290 | 'incoming changesets nor commits') % hooktype) |
|
293 | 'incoming changesets nor commits') % hooktype) | |
291 | if (hooktype == 'pretxnchangegroup' and |
|
294 | if (hooktype == 'pretxnchangegroup' and | |
292 |
source not in ui.config('acl', 'sources' |
|
295 | source not in ui.config('acl', 'sources').split()): | |
293 | ui.debug('acl: changes have source "%s" - skipping\n' % source) |
|
296 | ui.debug('acl: changes have source "%s" - skipping\n' % source) | |
294 | return |
|
297 | return | |
295 |
|
298 |
General Comments 0
You need to be logged in to leave comments.
Login now