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

Re: Create new repos rev 1 from existing repos revision

From: Michael Haggerty <mhagger_at_alum.mit.edu>
Date: 2006-11-13 11:54:00 CET

Gal Aviel wrote:
> I have a "golden" repository that I want to use when creating new repositories
> for new projects.
>
> The problem is that svnadmin dump and load cycle will start off the new repos
> from the version in my "golden" repos, incl. the history, which I don't want.
>
> I want my new repos to start from rev 1 (or zero), I don't want users to see all
> the history (they don't care about it).
>
> Any help would be greatly appreciated,

I think the following should work (untested):

$ svnadmin dump -r HEAD $OLDREPO >svn.dump
$ svnadmin create $NEWREPO
$ svnadmin load --ignore-uuid $NEWREPO <svn.dump

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 13 11:54:51 2006

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.