[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: How to svnserve multiple repositories?

From: Robert Brewer <fumanchu_at_amor.org>
Date: 2004-09-23 01:06:04 CEST

Max Bowsher wrote:
> Robert Brewer wrote:
> > Hi all,
> >
> > I've installed Subversion 1.0 on a Win2k server and had a
> go at setting
> > up repositories. I tried the single-repository approach for my 6
> > projects, but quickly decided I needed separate revision numbers and
> > separate access controls. Therefore, I'm trying to set up multiple
> > repositories. I have no problem *creating* them:
> >
> > svnadmin create E:\repos\cation
> > svnadmin create E:\repos\dejavu
> > etc.
> >
> > No problems *populating* them either (at least, I don't
> think there are
> > any problems):
> >
> > svnimport -m "initial import" C:\migrate\cation
> file:///E:/repos/cation
> > svnimport -m "initial import" C:\migrate\dejavu
> file:///E:/repos/dejavu
> > etc.
>
> Hmm. Didn't you want trunk, tags, branches directories?
> Or are your projects the sort to never require branches or tags?

I elected to place trunk, tags, branches as subdirectories of each
repository. Before "svn import", I set up each source to look like:

C:
  \migrate
    \cation
      \branches
      \tags
      \trunk
        \doc
        \bin
        file1

> Or is "svnimport" a wrapper handling that?

Sorry, I left out the space between "svn" and "import" in the email. The
actual commands, therefore, were:

svn import -m "initial import" C:\migrate\cation file:///E:/repos/cation
etc.

> > But I can't figure out how to *serve* more than one.
> >
> > svnserve -d -r E:\repos\cation
> >
> > ...works, but only serves one repository. How do I serve the other 5
> > projects simultaneously? Different ports? I'm hoping for a solution
> > which results in TortoiseSVN's Repo-Browser showing me all
> 6 projects at
> > once, but that's not a deal-breaker.
> >
> > Any help gladly accepted.
>
> -r defines a *root* - not a specific repository. So:
>
> svnserve -d -r E:\repos
>
> svn checkout svn://localhost/cation
> svn checkout svn://localhost/dejavu

That works great. I had tried that (in fact, that svnserve process was
still running on my server ;). Guess my problem was just grokking
TortoiseSVN and repo URL's when browsing. It can't drill down into
separate repositories on its own--once I supplied the correct URL, it
worked fine. Thanks for your help!

Robert Brewer
MIS
Amor Ministries
fumanchu@amor.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 23 01:12:42 2004

This is an archived mail posted to the Subversion Users mailing list.