equal
deleted
inserted
replaced
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: |