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

Re: Using TSVN to connect to multiple repositories on same server?

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-07-13 22:39:54 CEST

On 13/07/07, Erik Hemdal <erik@comprehensivepower.com> wrote:
>
> >
> > Thanks, Erik.
> >
> > When I use TSVN to go to svn://host.domain.com/repo2, SVN
> > attempts to access
> > a subdirectory 'repo2' under the first repository I created.
> > I can't log on
> > using the credentials I created for repo2, but can using the
> > credentials I
> > created for the original repository.
> >
> > The server is Subversion 1.2.3-r19776 running on Windows, if
> > that makes a
> > difference.
> >
> > I'm certain that I'm asking a stupid newbie question, but the
> > fact is that I
> > AM a stupid newbie, and I do appreciate the assistance.
>
> Hi Matthew:
>
> To make this work, I think the key is specifically where your repositories
> are set up. It's not really a TSVN issue.
>
> There's a repository root, or parent, directory, which is what I give to the
> svnserve command when I start the server. Let's say this is /repobase.
> Svnserve will look for repositories starting in this directory. If I want
> multiple repositories I need to svnadmin create them underneath this root.
>
> If I want 2 URLs like
>
> svn://host.domain.com/mystuff
> svn://host.domain.com/myfriendstuff
>
> the repositories need to be located at
>
> /repobase/mystuff
> /repobase/myfriendstuff
>
> Which means I need to do the command
>
> svnadmin create /repobase/mystuff
> svnadmin create /repobase/myfriendstuff
>
> If I do
>
> svnadmin create /repobase
>
> then svnserve will only find one repository, and will be confused. I'm
> guessing that this is what you did, so Tortoise is finding only one
> repository.
>
> If you are on Windows, I think you'll want directories like
> C:\repobase\mystuff. I don't use SVN on Windows, so I'm guessing about
> that.
>
> I hope this helps. Erik

Look at the docs again.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup-svnserve.html

Use the --root drive:\path\to\reporoot
so if you have c:\svn-repos\repo1 and c:\svn-repos\repo2 you would use:

svnserve.exe --daemon --root c:\svn-repos

Access as svn://host.domain.com/repos1 etc.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Jul 13 22:39:14 2007

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