hook: provide hook type information to external hook
The python hooks have access to the hook type information. There is not reason for external hook to not be aware of it too. For the record my use case is to make sure a hook script is configured for the right type.
Showing
- mercurial/help/config.txt 5 additions, 2 deletionsmercurial/help/config.txt
- mercurial/hook.py 3 additions, 2 deletionsmercurial/hook.py
- tests/test-bundle.t 2 additions, 2 deletionstests/test-bundle.t
- tests/test-bundle2-exchange.t 37 additions, 37 deletionstests/test-bundle2-exchange.t
- tests/test-bundle2-multiple-changegroups.t 21 additions, 21 deletionstests/test-bundle2-multiple-changegroups.t
- tests/test-hook.t 89 additions, 89 deletionstests/test-hook.t
- tests/test-http-bundle1.t 1 addition, 1 deletiontests/test-http-bundle1.t
- tests/test-http.t 1 addition, 1 deletiontests/test-http.t
- tests/test-https.t 1 addition, 1 deletiontests/test-https.t
- tests/test-push-http-bundle1.t 3 additions, 3 deletionstests/test-push-http-bundle1.t
- tests/test-push-http.t 8 additions, 8 deletionstests/test-push-http.t
- tests/test-ssh-bundle1.t 3 additions, 3 deletionstests/test-ssh-bundle1.t
- tests/test-ssh.t 3 additions, 3 deletionstests/test-ssh.t
- tests/test-static-http.t 1 addition, 1 deletiontests/test-static-http.t
Loading
Please register or sign in to comment