[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: Jon Foster <Jon.Foster_at_cabot.co.uk>
Date: Mon, 6 Sep 2010 16:54:05 +0100

Stefan Sperling wrote:
> 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.
> >
[snip]
> >
> > 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

I'm wondering if svndumptool could do this automatically. (Maybe
'svndumptool merge -o out.dump -i in.dump -r var/svn/proj1 proj1' ?)
But I haven't tried it. See:

http://svn.borg.ch/svndumptool/

Kind regards,

Jon

**********************************************************************
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Cabot Communications Ltd.

If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.

Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232

Co. Registered in England number 02817269

Please contact the sender if you believe you have received this email in error.

**********************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Received on 2010-09-06 17:55:02 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.