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

Re: Move dir from one repo into it's own

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Wed, 26 Mar 2008 05:19:25 -0500

On Mar 26, 2008, at 05:01, Markus Meyer wrote:

> I have a directory "foo" which is somewhere in the repo "bar". Now
> I want that this dir gets it's own repo. How can I accompish this?
> AFAIK "svnadmin dump/switch" work only on complete repos.

http://svnbook.red-bean.com/en/1.4/
svn.reposadmin.maint.html#svn.reposadmin.maint.migrate

"svnadmin dump" the entire old repository.

To create the new repo that contains only "foo":

"svnadmin create" the new repo for foo
"svndumpfilter" the dumpfile to include only "foo" and load that into
the new repo for foo

To create the new repo that contains everything except "foo":

"svnadmin create" the new repo for everything but foo
"svndumpfilter" the dumpfile to exclude "foo" and load that into the
new repo for everything but foo

backup and then remove the old repo
backup and then remove all working copies of the old repo
check out new working copies

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-26 11:20:25 CET

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.