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

Re: Changing Dump Paths.

From: Michael Quigley <michael9_at_michael9.com>
Date: 2004-01-07 17:26:33 CET

John Peacock said:
> No, then you should't need to edit it at all. What was your exact command to
> load the dumpfile? It should have been:
>
> svnadmin load /path/to/repository < dumpfile
>
> i.e. you do not want (or need) the '--parent-dir arg' option.

That's not the problem. Again, I have a repository:

http://svn:6666/repository/

It contains two directories, 'project-a' and 'project-b':

http://svn:6666/repository/project-a/
http://svn:6666/repository/project-b/

I dump the repository:

$ svnadmin dump http://svn:6666/repository > dumpfile

I separate the projects:

$ cat dumpfile | svndumpfilter include project-a > project-a-dumpfile
$ cat dumpfile | svndumpfilter include project-b > project-b-dumpfile

I create two new repositories:

$ svnadmin create /raid/subversion/project-a
$ svnadmin create /raid/subversion/project-b

I load my dumps:

$ svnadmin load /raid/subversion/project-a < project-a-dumpfile
$ svnadmin load /raid/subversion/project-b < project-b-dumpfile

I end up with:

$ svn co file:///raid/subversion/project-a
$ find project-a
project-a/
project-a/project-a/
project-a/project-a/1
project-a/project-a/2
...

When what I really want is:

$ find project-a
project-a/
project-a/1
project-a/2
...

The original 'project-a' and 'project-b' directories from the original
repository are no longer necessary, as the new repositories 'project-a' and
'project-b' take the place of these directories.

I'd do a simple search and replace to change the paths in the
project-a-dumpfile and project-b-dumpfile, but that would leave empty
'Node-path:' entries lying around and probably cause problems (I haven't
actually tried it).

Anyone have any advice?

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 7 17:27:16 2004

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.