Project

General

Profile

Redmine and multiple SCMs management

Added by Alexandre Lissy about 13 years ago

Hello,

I have a question regarding Redmine's SCM management. First, let's say that I enabled some SCMs in Redmine, like Subversion, Mercurial and Git. Considering we have, for example, one project under Subversion, one other under Mercurial and one other under Git. From my understanding, using the automatic repository creation via reposman.rb will only work to automatically create one kind of repository. Said otherwise, can't I use reposman.rb to automatically create Subversion, Mercurial or Git repositories at the same time ?

Thanks for any help!


Replies (5)

RE: Redmine and multiple SCMs management - Added by Felix Schäfer about 13 years ago

Reposman.rb can only create one type of repo per run. You could theoretically have 3 reposmans running at :00, :20 and :40 creating svn, git and hg repos ;-)

Note though that reposman will never replace existing repository settings, meaning you can have a reposman configured to create svn repos, but still create a project with a git or hg repository "by hand" without fear of reposman replacing it.

RE: Redmine and multiple SCMs management - Added by Alexandre Lissy about 13 years ago

Thanks for your answer.

I tried the trick of running several reposman.rb with --scm being set accordingly, but I wonder: how can the user select the type of repos he want ?

RE: Redmine and multiple SCMs management - Added by Felix Schäfer about 13 years ago

Alexandre Lissy wrote:

I tried the trick of running several reposman.rb with --scm being set accordingly, but I wonder: how can the user select the type of repos he want ?

That was meant as a joke, if you have reposmans set up as I wrote, anyone requesting a new repository to be setup through reposman would get a git repo if requested between :00 and :20, an hg one if requested between :20 and :40 and an svn one if requested between :40 and :00.

There is no way to have users choose which type of repository they want in core, the only way I know of is with a patch I've seen a while ago, but I don't know if it works with current Redmine, nor where I have seen it, sorry.

RE: Redmine and multiple SCMs management - Added by Alexandre Lissy about 13 years ago

I suspected you were joking :)

I've been pointed at those patches a couple of minutes ago, we might work to use them. Do you think this kind of feature has its place inside the core ? Or it should stays out, as a plugin. Because as far as I understand, reposman has no hook for plugins ...

RE: Redmine and multiple SCMs management - Added by Felix Schäfer about 13 years ago

Alexandre Lissy wrote:

I've been pointed at those patches a couple of minutes ago, we might work to use them. Do you think this kind of feature has its place inside the core ?

I'm not involved in Redmine development anymore, sorry, I can't help you with that, but keep me posted if you find and update the patches, I might need them in the near future too.

    (1-5/5)