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

RE: Multi-project repository setup and svn load problem

From: Dale Hirt <dale_at_sbcltd.com>
Date: 2005-09-19 20:18:49 CEST

I see where you are going wrong. Do these steps:
1. Create your new repo
    svnadmin create /usr/local/SourceBases/subversion/ISDevelopment/
2. Create your new directories
    svn mkdir file:///usr/local/SourceBases/subversion/ISDevelopment/DEV -m "Development Directory"
    svn mkdir file:///usr/local/SourceBases/subversion/ISDevelopment/DEV/Audiocontrols -m "Development Directory"
3. Load your old repos into it
    svnadmin load /usr/local/SourceBases/subversion/ISDevelopment/ --parent-dir DEV/Audiocontrols < /usr/local/SourceBases/subversion/dumps/full.dump

Where you are going wrong is in assuing that DEV/Audiocontrols is a folder hierarchy on disk. It is NOT.

Where DEV/Audiocontrols is the folder hierarchy I need to maintain. But I am confused as to what should I use as the virtual root name (--parent-dir DEV/Audiocontrols)

I even tried using only Audiocontrols but it didn't work.


I was thinking that the only option is to create repository within a repository to achieve what I needed.

Any other suggestions on how to do this?




From: Dale Hirt [mailto:dale@sbcltd.com]
Sent: Monday, September 19, 2005 1:26 PM
To: Gupta, Praful; users@subversion.tigris.org
Subject: RE: Multi-project repository setup and svn load problem




Look at http://svn.haxx.se/users/archive-2005-09/0771.shtml. svnadmin load --parent-dir <arg> is your friend.



-----Original Message-----
From: Gupta, Praful [mailto:pgupta@intercall.com]
Sent: Monday, September 19, 2005 9:08 AM
To: users@subversion.tigris.org
Subject: Multi-project repository setup and svn load problem


I am trying to set up a multiple projects single repository layout for some of our projects. Here is a sample layout of what I need:

/Development (repository root)


                        /Project A




                        /Projects B




/Development is the root for the single repository which has the project folders /DEV, /QA, /DEV/Project A. I have this repository layout already setup. I tried to follow the steps outlined in the svn book pages: 100-101.

I have dump files from different repositories and I need to load them up as Project A or Project B. But whenever I try to use svnadmin load it gives an error stating:


svnadmin: Can't open file '/DEV/Project A/format': No such file or directory


I tried copying the format file into the Project A folder but then it gave me another error:


svnadmin: Error opening db lockfile

svnadmin: Can't open file '/Development/DEV/Project A/locks/db.lock': No such file or directory


It seems that in order to do something as outlined in the book, you need to have the target setup as a repository rather than a project folder. Is this true or am I missing some steps?


I tried using svn import by setting up a temp repository for Project A and then trying to import it into the layout but it failed again giving the same error.


Plz advise on how to load dump files from different repositories in to a multi-project repository where there are projects folders rather than being a repository within a repository setup.


The server is setup on a Unix box and running svnserve.




Praful Gupta

Software Engineer

Intercall: A Subsidiary of West Corporation

p: 706-643-8339 c: 706-518-8119 f: 706-634-3751

email: pgupta@intercall.com url: www.intercall.com

Received on Mon Sep 19 20:21:46 2005

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.