I tried to edit a 5 Gb file on a Linuxserver we have with vi, it took some 30 
minutes to open the file but it did work!

The format is quite simple :  a revision starts with the string :

Revision-number:

Just delete all the lines  until the next 

Revision-number:


And the revision is removed from the dump. I am not quite sure if you need to 
renumber the revisions afterwards though, but I don't think so.

There is a problem though if what you delete is referenced later on in the 
dump, then the load will fail.


Geir



Note : All inquiries regarding Subversion, MKS and general Development servers 
should be directed to "EDB SourceControl System"




> -----Original Message-----
> From: Dennis Jones [mailto:djo...@grassvalleysoftware.com]
> Sent: 21. august 2011 22:12
> To: Engebakken Geir
> Subject: Re: How to solve svnadmin load "File already exists" error?
> 
> ----- Original Message -----
> From: "Engebakken Geir" <geir.engebak...@edb.com>
> To: "Daniel Shahaf" <d...@daniel.shahaf.name>; "Dennis Jones"
> <djo...@grassvalleysoftware.com>
> Cc: <users@subversion.apache.org>
> Sent: Sunday, August 21, 2011 12:22 PM
> Subject: RE: How to solve svnadmin load "File already exists" error?
> 
> 
> Isnt it possible to just remove the N records from the dump file and
> restart
> the svnadmin load? I seem to think I have tried that with success
> before.
> 
> You are the second person to suggest this.  There are two problems with
> that
> approach, both of which *can* be solved, but will take some effort:
> 
> 1) The file is 5GB.  I haven't been able to find an editor that can
> handle a
> file that big.  I can solve this by splitting the file into smaller
> pieces
> and editing the piece containing the bad revision and splicing them
> back
> together afterwards.  Just a pain to do.
> 
> 2) I don't understand the file format.  What are the beginning and end
> markers for a particular revision?
> 
> - Dennis

Reply via email to