Project

General

Profile

Feature #5574

hg: Information for external hooks

Added by A. Klitzing 10 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05.12.2019
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:

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

History

#1 Updated by Marcin Kuzminski [CTO] 10 months 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

#2 Updated by A. Klitzing 10 months 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

https://code.rhodecode.com/rhodecode-vcsserver/files/041c9d3f1e621befeb543225f2a12b9b60e9587c/vcsserver/http_main.py#L501-507 ?

#3 Updated by Redmine Integration 4 months ago

  • Status changed from New to Resolved

#4 Updated by A. Klitzing 2 months 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.

Also available in: Atom PDF