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

RE: How to solve svnadmin load "File already exists" error?

From: Engebakken Geir <geir.engebakken_at_edb.com>
Date: Tue, 23 Aug 2011 15:09:24 +0200

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:djones_at_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.engebakken_at_edb.com>
> To: "Daniel Shahaf" <d.s_at_daniel.shahaf.name>; "Dennis Jones"
> <djones_at_grassvalleysoftware.com>
> Cc: <users_at_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
Received on 2011-08-23 15:10:05 CEST

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.