[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:59:44 CEST

Glad to help Praful.
 
Dale

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

Hi Dale,

It did work this time. I dunno why it didn't work earlier, I had done exactly as you have outlined. But only this time I used a fresh dump file created from the existing repository.

You see I had used a tool to convert a PVCS repository into a subversion one. The tool had created a dump file to use. But when I used the dump file to load into a repository, it is not working.

So heres what I did;

First, I created a temp repository and loaded the contents into it. Then I created a new dump file from this temp repository and followed the steps and it worked.

You could also restrict the version numbers from bumping up every time you create new project folder by creating multiple projects using a single cmd then subversion would commit all of them at once thus bumping the number by only one rather than several.

 

Now, I am gonna try restricting access to users using svnserve or apache http mod. And later on, we are gonna have a windows machine so shall use windows authentication instead. I shall keep this posted in case someone else has similar problems.

 

Thanks a lot for your input. I hope this helps others too.

Praful

 

  _____

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

 

Praful,

 

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 <file:///\\usr\local\SourceBases\subversion\ISDevelopment\DEV> -m "Development Directory"

    svn mkdir file:///usr/local/SourceBases/subversion/ISDevelopment/DEV/Audiocontrols <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.

 

Dale

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?

Thanks

 

  _____

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

 

Praful,

 

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

 

Dale

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

Hi,

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)

            /DEV

                        /Project A

                                    /branches

                                    /trunk

                                    /tags

                        /Projects B

            /QA

            /PROD

 

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

 

Thanks,

 

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 21:05:53 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.