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

Re: a simple recipe to 'obliterate' an item from svn repository

From: Ryan Schmidt <subversion-2012a_at_ryandesign.com>
Date: Fri, 16 Mar 2012 16:02:25 -0500

On Mar 16, 2012, at 13:33, Giorgio F. Signorini wrote:

> I need to delete a file permanently from my repository, since it was
> added by mistake and is very big. I understand this is not a very easy
> thing to do, and is related to the project of an 'svn obliterate'
> command.
>
> I seem to have found a simple workaround for my problem, and I would
> very much like to share it for comments.
>
> Suppose the current revision is 200 and the big file was added in rev
> 100. I can use the dump / load scheme of svnadmin, taking care in
> skipping revision 100 during the process:
>
> svnadmin dump -r1:99 oldrepos > rev.1-99
> svnadmin dump -r101:200 --incremental oldrepos > rev.101-200
>
> svnadmin create newrepos
> svnadmin load newrepos < rev.1-99
> svnadmin load newrepos < rev.101-200

You also need to ensure the new repos has a new UUID. That means use the "--ignore-uuid" flag on the first "svnadmin load" command. It also means everybody who has a working copy must check out a new working copy from the new repository once you're done.
Received on 2012-03-16 22:03:04 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.