Project

General

Profile

Actions

Feature #5574

open

hg: Information for external hooks

Added by A. Klitzing almost 5 years ago. Updated about 4 years 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

Actions #1

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

Actions #2

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

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

Actions #3

Updated by Redmine Integration over 4 years ago

  • Status changed from New to Resolved
Actions #4

Updated by A. Klitzing about 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.

Actions

Also available in: Atom PDF