# RE: Using TSVN to connect to multiple repositories on same server?

From: Erik Hemdal <erik_at_comprehensivepower.com>
Date: 2007-07-13 17:30:42 CEST

>
> 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

If I do

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org