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

Re: What is the easiest way to clone an existing SVN Repository and include only some of the projects?

From: Doug Hunley <doug.hunley_at_gmail.com>
Date: Tue, 20 Dec 2011 14:43:33 -0500

On Mon, Dec 19, 2011 at 22:55, Andy Levy <andy.levy_at_gmail.com> wrote:
> On Mon, Dec 19, 2011 at 22:45, Craig Burlock <craig.burlock_at_gmail.com> wrote:
>> Hello all,
>>
>> I need to create a new SVN Repository based on my existing SVN Repository
>> for another software development team. Due to security reasons, the new SVN
>> Repository must contain only a selection of my existing projects and must
>> include code and change history.
>>
>> Can this be done?
>>
>> Is it easy?
>>
>> Any advice would be wonderful!
>
> Dump the repository (svnadmin dump), then wash the dumpfile through
> svndumpfilter to either selectively extract the paths you are allowed
> to have, or remove the ones you aren't.
>
> http://svnbook.red-bean.com/en/1.7/svn.ref.svndumpfilter.html

I have never hated a program more than I hate svndumpfilter ;)

Whenever I need to do what is asked for herein, I use 'svnsync' since
it now allows you to set the 'from' repo as a *path* in a repo:
https://server/repo/path0/path1

That 'clones' just the 'path1' into the 'to' repo

;)

-- 
Douglas J Hunley (doug.hunley_at_gmail.com)
Twitter: @hunleyd                                               Web:
douglasjhunley.com
G+: http://goo.gl/sajR3
Received on 2011-12-20 20:44:05 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.