Project

General

Profile

Mercurial Integration

Added by Calvin Cheng almost 16 years ago

Hi,

I have been a Redmine User (in conjunction with SVN) for quite a while and it has been really great so far.

I was wondering how Mercurial could be set up to work properly with Redmine like how the SVN Integration is like. Searching for wiki documents did not yield any good results so far.

In general, I am anticipating that the following set-up steps are required:-
(Step 1) apt-get install mercurial (very easy)
(Step 2) Create a hg server and set up related Apache Directives (this part is confusing as I have to set it up in such a way as to authenticate against the Redmine MySQL Database); With Thomas' help a 3-4 months ago, I managed to get this done for SVN. The question is, is the Apache Directives for the hg server going to be the same?
(Step 3) In the Redmine interface, select a Project and associate it to the Mercurial Repository
(Step 4) Run ruby script reposman.rb ????? (Nothing about how this should work with Mercurial is discussed on the wiki either)

Anyone out there has got Mercurial well-integrated and set-up with Redmine?

Looking for your advice...

And if we can get this together, perhaps we can start a Wiki Page and document this process so that others can benefit from it in future?

Regards,
Calvin


Replies (5)

RE: Mercurial Integration - Added by Kaare Nilsen almost 16 years ago

Well.. I just created a mercurial repos and set my project to use mercurial repository, and nothing else. quite easy. running at http://projects.kaare-nilsen.com (all projects are mercurial repos)

RE: Mercurial Integration - Added by Kaare Nilsen almost 16 years ago

That is. I did not set it up to be using the redmine authentication. But if you have the apache authentication settings for svn it should be the same for mergurial afaik

RE: Mercurial Integration - Added by Thomas Lecavelier almost 16 years ago

Hi Calvin,

AFAIK, reposman.rb is a svn-only feature. Configuring Apache to serve hg repositories is not as easy as with git, I know only the provided hgwebdir.cgi, which is not what I could call a good solution.

From my point of view, you can't get an as-comfortable configuration with hg that you have with svn: the only solution is to develop equivalent solution to reposman.rb for the other (D)SCM (the better could be a generic way, as the SCMAdapter embedded in redmine).

RE: Mercurial Integration - Added by Calvin Cheng almost 16 years ago

Hi all,

Thomas: Hope all is good and year 2008 has been great for you. :)

Kaare: Thanks for your input. So that means that ALL your mercurial repositories are Publicly Accessible?

Thomas: So it will in fact be easier to set up Git for Redmine Authentication compared to Mercurial! Is there a wiki page on this that I can refer to? (Git with Redmine Authentication).

Regards,
Calvin

RE: Mercurial Integration - Added by Kaare Nilsen almost 16 years ago

Well all my repos are publicly viewable, but you will need to authenticate to push. It is a site for my personal incubator for open source projects that has not found a home yet :)

But anyway I use my apache server to setup security for push, and in redmine admin for users and pemissions, you can see if the repository tab is visible for different roles. But yeah would be cool to integrate even more

    (1-5/5)