Project

General

Profile

Feature #5574

hg: Information for external hooks

Added by A. Klitzing 7 months ago. Updated about 1 month 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] 7 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 7 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 about 1 month ago

  • Status changed from New to Resolved

Also available in: Atom PDF