contrib/hg-ssh
changeset 25127 2b9cda9040f7
parent 16836 1ba3e17186c8
child 28045 f68ded00cae5
equal deleted inserted replaced
25126:00e4c5601c74 25127:2b9cda9040f7
    62         if repo in allowed_paths:
    62         if repo in allowed_paths:
    63             cmd = ['-R', repo, 'serve', '--stdio']
    63             cmd = ['-R', repo, 'serve', '--stdio']
    64             if readonly:
    64             if readonly:
    65                 cmd += [
    65                 cmd += [
    66                     '--config',
    66                     '--config',
    67                     'hooks.prechangegroup.hg-ssh=python:__main__.rejectpush',
    67                     'hooks.pretxnopen.hg-ssh=python:__main__.rejectpush',
    68                     '--config',
    68                     '--config',
    69                     'hooks.prepushkey.hg-ssh=python:__main__.rejectpush'
    69                     'hooks.prepushkey.hg-ssh=python:__main__.rejectpush'
    70                     ]
    70                     ]
    71             dispatch.dispatch(dispatch.request(cmd))
    71             dispatch.dispatch(dispatch.request(cmd))
    72         else:
    72         else: