Feature #6515

Mercurial hgrc support with issues auto-syncronizaton

Added by Alessio Caiazza almost 12 years ago. Updated over 11 years ago.

Status:NewStart date:2010-09-28
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


I've write a little patch for mercurial SCM that allows you to edit some fields of HG_REPO/.hg/hgrc.

Currently is possible to edit the repositories's description, the contact and the web style; wich are usefull if you publish your repository with hgredmine or the hgweb cgi.

Another interesting features is the ability to generate an hook that will force redmine to fetch changes after a push.

My patches applies on 1.0-stable branch, after the patches provided by Yuja on Issue #4455

My patches are available as MQ here

add_ini_support.diff Magnifier - INI file parser (7.03 KB) Alessio Caiazza, 2010-09-28 10:13

hgrc_support_tests.diff Magnifier - some tests (4.82 KB) Alessio Caiazza, 2010-09-28 10:13

mercurial_helper_hgrc_support.diff Magnifier - web interface (1.23 KB) Alessio Caiazza, 2010-09-28 10:13

mercurial_hgrc_support.diff Magnifier - the code (2.73 KB) Alessio Caiazza, 2010-09-28 10:13

Related issues

Related to Redmine - Patch #7494: Patch for support http protocol wirh mercurial repository Closed 2011-01-30 2011-01-30
Related to Redmine - Feature #4455: Mercurial overhaul Closed 2009-12-21
Related to Redmine - Patch #986: Clone remote git repository Closed 2008-04-03


#1 Updated by Declan Lynch over 11 years ago

This is something I'd like to see added to the product for Mercurial repositories.

The project description could automatically come from the project description and the owner can come from the project owner list for the project. Not sure how this would work for redmine sites that change the user roles names or add in extra ones.

Private projects should automatically have the 'hidden' flag turned on in the hgrc so they don't list in the HGWeb repository list.

In terms of style I prefer to set that in the hgweb.config file so all repositories have the same style so there would need to be an option to disable setting this on a project by project basis if wanted.

I'll certainly be watching this and hoping it gets added.

Also available in: Atom PDF