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

Re: Creating a new SVN Projects from Directories in Another SVN Project

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Thu, 29 Jan 2009 10:02:18 -0800

On Thu, Jan 29, 2009 at 9:48 AM, Jon Froehlich <jonfroehlich_at_gmail.com>wrote:

> This might sound like a weird request but here's what I need to do: I
> have a SVN project that has been ongoing for about a year (so it has
> significant change history). A subdirectory within that project has
> now evolved into a larger project on its own. I would like to pull out
> this subdirectory and make a new SVN project around it and, hopefully,
> maintain its original change history.
>
> I know that I could simply create a new SVN project and commit the
> most recent version of this directory but then I would lose its change
> history. This is what I'll do if I don't hear of other
> recommendations.
>
>
Dump your current repository (entire repository) using svnadmin dump. Then
filter out the subdirectory from the dump file using svndumpfilter. Then
reload the filtered out dump file to a new repository.

This way you should be able to create a new repository and keep the history.

   - svnadmin dump /current/repository > /tmp/repo.dump
   - cat /tmp/repo.dump | svndumpfilter include --drop-empty-revs
   --renumber-revs subdir/ > /tmp/new.dump
   - svnadmin create /new/repository
   - cat /tmp/new.dump | svnadmin load /new/repository

Thanks,
-Hari

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1069515

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-29 19:03:09 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.