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

Re: Moving directories out of a repository into their own

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-11-04 01:51:31 CET

On Nov 3, 2007, at 18:13, Eric wrote:

> I know this has been discussed in the past but I can't find it, so
> please excuse the rerun...
>
> Server: Fedora 7, Subversion 1.4.3
>
> Client: Windows XP Pro SP2, TortoiseSVN version 1.4.0 Build 7501
>
> Connection: svn+ssh
>
> (yes, I know it's old and there are newer versions out, but it all
> works flawlessly and I'd rather not fix what ain't broke...)
>
> One of my repositories has a LARGE (8+ GB) subdirectory in it that
> I'd like to move out into its own repository while maintaining the
> history.
>
> Can someone please point me to the approved way of doing that?
>
> Either from the client via Tortoise or logged into the server using
> Subversion's own command line user interface would be fine with me...

Neither the svn command line client nor TortoiseSVN nor any other
client can perform this function. You need to use the svnadmin
command, which can only be run with direct filesystem access to the
repository. You will need to svnadmin dump the repository to a file,
then svndumpfilter that file to include only that large subdirectory,
then svnadmin load that filtered file into a new repository. Then, do
the same thing, except svndumpfilter to exclude that one directory,
then svnadmin load it into another new repository. Those two new
repositories will replace your old repository, which you can archive
and eventually delete. Anyone with existing working copies of your
old repository will need to check out new working copies.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 4 01:51:53 2007

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.