Project

General

Profile

Project to repository relationship, is it 1-to-1?

Added by Randy Syring over 15 years ago

I am trying to understand how projects relate to subversion repositories. Does each project have to map to a repository or can I map a project to a path in a repository?

I.e. I have an existing repository with lots of stuff in it:

https://svn.mydomain.com/svn/webdev/customers/...

I have a single customer "mycustomer" that I would like to setup a project for in redmine. Can I set the project's repository to:

https://svn.mydomain.com/svn/webdev/customers/mycustomer

or do I need to export everything to a new repository and then use that, i.e.:

https://svn.mydomain.com/svn/mycustomer


Replies (1)

RE: Project to repository relationship, is it 1-to-1? - Added by Randy Syring over 15 years ago

Got the answer on IRC:

(6:14:08 PM) rcscomp: I am trying to understand how projects relate to
    subversion repositories.  Does each project have to map to a repository or
    can I map a project to a path in a repository?
(6:15:36 PM) edavis10: rcscomp: depends on which repository type you use.
(6:15:43 PM) rcscomp: svn
(6:16:04 PM) edavis10: rcscomp: svn can point to any part of the svn repository.
    So you can pick a path that isn't the root.
(6:16:57 PM) rcscomp: edavis10: awesome.  I assume that makes project creation
    easy as its just another directory in the tree.  Is there any downsides
    to that method?
(6:18:31 PM) edavis10: rcscomp: project creation?
(6:19:25 PM) rcscomp: edavis10: yah, like if I want a new project for a customer.
    I just create a new subversion directory then assign that path to the
    project in redmine, right?
(6:19:45 PM) edavis10: rcscomp: yea, that could work.
(6:19:46 PM) rcscomp: If I have something wrong, let me know.  I just started
    working with Redmine yesterday.
(6:20:08 PM) edavis10: rcscomp: I perfer to have separate repos for each project
    but that's because I use git and I try to keep data separate.
(6:20:40 PM) edavis10: rcscomp: you can also enable the svn creation scripts.
    That will make Redmine create svn repositories for you automatically (one
    repo per Redmine project)
(6:22:28 PM) rcscomp: edavis10: I am trying to use redmine to manage customer
projects/tasks. So I would like to have a customer respository for our customers
and then projects to represent large customer projects. Given the number of
customer projects we will have, I think a repository per project might be
overkill.

    (1-1/1)