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

RE: Repository Directory Tree

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Tue, 7 Sep 2010 13:19:53 +0100

>

Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03

-----Original Message-----

> From: Allen Williams [mailto:aladdin_at_csunv.com]
> Sent: 07 September 2010 12:24
> To: users_at_subversion.apache.org
> Subject: RE: Repository Directory Tree
>
> I *think* that proj1/2/3 are separate projects inside one
> repository, but none of those distinctions were very clear to
> me (I DID read the manual, cover to cover). I certainly
> understand the concept of the equivalence between a directory
> and project (I think), but, to me, anyway, it's not clear the
> distinction between a repository and further directory structure.
>
> But now my memory returns: I only created ONE repository, so
> all those are projects under that repository.
>

So /var/svn is a repository, created with svnadmin create /var/svn. The project where imported as var/svn/proj1, var/svn/proj2 and var/svn/proj3. So your projects do live in the var/svn directory in your repository (note there is no / at the beginning so I'm referring to the repository but a directory inside your repository).

I would do the following (presuming you're on unix or linux)

- check out the whole thing (it might be too big but maybe not)
     svn checkout file:///var/svn ~/tmp
This will create a new directory called tmp in your home directory whit the whole of your repository. Insinde ~/tmp you will have var/svn/proj1, var/svn/proj2 and var/svn/proj3.

- move the projects to the root of your repository
     cd ~/tmp
     svn move var/svn/proj1 proj1
     svn move var/svn/proj2 proj2
     svn move var/svn/proj3 proj3
Since you have used svn command the history will be preserved.

- commit
     svn commit -m"Reorganising the projects"

Done. Now to see a list of your projects 'svn list file:///var/svn' will be enough.

Giulio
Received on 2010-09-07 14:20:53 CEST

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

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