##// END OF EJS Templates
hg-ssh: reject push earlier (on pretxnopen)...
Pierre-Yves David -
r25127:2b9cda90 default
parent child Browse files
Show More
@@ -64,7 +64,7 b' def main():'
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 ]
@@ -398,7 +398,7 b' Test hg-ssh in read-only mode:'
398 pushing to ssh://user@dummy/*/remote (glob)
398 pushing to ssh://user@dummy/*/remote (glob)
399 searching for changes
399 searching for changes
400 remote: Permission denied
400 remote: Permission denied
401 remote: abort: prechangegroup.hg-ssh hook failed
401 remote: abort: pretxnopen.hg-ssh hook failed
402 remote: Permission denied
402 remote: Permission denied
403 remote: pushkey-abort: prepushkey.hg-ssh hook failed
403 remote: pushkey-abort: prepushkey.hg-ssh hook failed
404 updating 6c0482d977a3 to public failed!
404 updating 6c0482d977a3 to public failed!
General Comments 0
You need to be logged in to leave comments. Login now