Feature #5574
openhg: Information for external hooks
0%
Description
RhodeCode already provides information about the current repository, group and user for in-process hooks.
We have a hook for mercurial but it is not possible to use it as a in-process hook because it uses rbtools (which uses hg binary).
So please add the same information to external hooks, too.
https://github.com/misery/ExtendedApproval/blob/master/contrib/mercurial_push.py
Updated by Marcin Kuzminski [CTO] almost 5 years ago
HI,
Can you explain a bit more what information you need for external hooks ? It's a bit unclear what additional information you'll need for the call hooks.
Cheers
Updated by A. Klitzing almost 5 years ago
We already talked about it last month or so. RhodeCode provides an environment variable with all needed information. But it's for in-processs hooks only.
- Username
- Full path to repository (group)
- Name of repository
Updated by Redmine Integration over 4 years ago
- Status changed from New to Resolved
Commit 122ebfb88343
by Daniel Dourvaris daniel@rhodecode.com on default
branch changed this issue.
https://code.rhodecode.com/rhodecode-enterprise-ce/changeset/122ebfb883430798a2b28a05cb42994bc3ef7b44
Updated by A. Klitzing over 4 years ago
Hi there,
I tried today to add those information to my external Mercurial hook. But I don't see any new data.
What did you added? There is no additional environment variable.