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

Re: Fwd: Repository Directory Tree

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 6 Sep 2010 16:47:43 +0200

On Mon, Sep 06, 2010 at 10:27:46AM -0400, Allen Williams wrote:
> I send this email out about once a month or so in what is becoming
> the vain hope I'll get a response...
>
> My subversion repository is in /var/svn. Somehow (and, yes, I'm new;
> I'm evaluating it), I've wound up with the following directory
> structure in my subversion repository:
>
> /var/svn/
> var/svn/proj1
> var/svn/proj2
> var/svn/proj3.
>
> In other words, to do a list of the repositories, I have to do:

Here you say "repositories"

>
> svn listfile:///var/svn/var/svn
>
> to get my projects listed.

... and here you say "projects". What do you really mean?

svn list does not give you a list of repositories.
It gives you a list of folders inside of *a* repostitory.
So it looks like there is only one repository here, directly in /var/svn.
Inside of that repository, you have a versioned directory also called var/svn.
And inside there you have your proj1, proj2, and proj3 folders.

>
> I've tried to do an svnadmin dump and load with --parent-dir, and that
> didn't work. This was the command line sequence after I had made a copy
> of the repository in /var/svn.sav:
>
> svnadmin dump /var/svn.sav> old_repos
> rm -r/var/svn/*
> svnadmin create /var/svn
> svnadmin load --parent-dir / /var/svn< old_repos
>
> But, even though I had parent-dir as / (to try to eliminate one of the
> /var/svn's), I still got /var/svn/var/svn/projects.
>
> What is the way to do this?

You want to remove the leading /var/svn components from all paths
in the dump file. See here:
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering
The part that starts with:
 "At this point, you have to make a decision.
  Each of your dump files will create a valid repository, but will
  preserve the paths exactly as they were in the original repository."
is the interesting part you should read especially carefully.

Stefan
Received on 2010-09-06 16:48:30 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.