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

Re: Multiple projects

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-10-13 00:12:18 CEST

On 12/10/2007, Larry Marshall <larclap@yahoo.com> wrote:
>
> I have been working with TortoiseSVN for about 6 months and really depend on
> it.
>
> I setup a repository on a Windows 2003 server running svnserve as a service.
> I also setup three folders beneath that repository(k:\svnrepos): tags,
> branches, trunk. This repository handles a single VS2005 solution.
>
> Now I want to setup a repository to handle multiple solutions. I created a
> new repository containing three projects. It looks like:
> k:\repositories
> |_project1
> |_project2
> |_project3
>
> I also created an additional svnserve service pointing to k:\repositories. I

Stop right there. If you have 2 svnserve processes running, both
listening to the same TCP port, which one is going to receive the
connection? Who knows - toss a coin?

> then used TortoiseSVN to Import a file structure like:
> |_tags
> |_branches
> |_trunk
> with the URL of the repository pointing to
> svn://server/repositories/project1. TortoiseSVN succeeded
> in importing the folder structure. But I was surprised to see that the
> revision number was 112, not 1. 112 would be the next revision number in my
> original repository (k:\svnrepos). I wanted each project to have its own
> sequential revision numbers rather than sharing revision numbers across all
> three projects.
>
> How does TortoiseSVN know which repository to connect to? Is my attempt
> approach all wrong?

It doesn't, so yes.

Look again at the docs (either the TSVN help file or the subversion
book) and check the --root option

svnserve.exe --daemon --root k:\reposroot

will find all repositories located within k:\reposroot. Note that the
folder specified is not itself a repository. It contains one or more
repositories. You only need one instance of svnserve to serve multiple
repositories. Create a new container folder and move your repositories
into it.

k:\reposroot
  svnrepos
  repositories

(You might want to rename these)

These would be accessed as svn://url/to/svnserve/svnrepos etc.

You will need to 'relocate' your working copies if the URL is changed
as a result of this.

> Once this is setup and working in the way I wish, I'd like to move the
> original repository to project3 repository. Is this possible?

Look in the svn book for this. You need to use svnadmin dump to dump
the contents of the original repository into an svn dumpfile, then
svnadmin load to load those revisions into an existing repository.

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 Sat Oct 13 00:16:26 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.