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

Re: inconsistent new lines - repair by modifying dump?

From: Nicolai Scheer <scope_at_planetavent.de>
Date: 2007-04-25 10:39:57 CEST

Hi!

Ryan Schmidt schrieb:

[...]
>> 1. svnadmin dump the repo to a file
>> 2. dump file uses LF, so it would be no problem
>> to replace single CRs by
>> CRLFs
>> 3. load dump file into fresh repo
>>
>> Is there any error-potential?
>> The outcome should be the same as if
>> the files were checked in initially
>> with correct line endings, or am I overlooking something?
>
> The dumpfile contains checksums of the data, so changing the line
> endings of your text files -- or making any other change to the file
> data in the dumpfile -- would cause the checksums to no
> longer match the data and the dumpfile to be declared corrupted.

Well, that's important... Thanks for pointing that out!

> You may want to look into svndumptool, which I understand may help
> specifically with fixing line endings in files:
>
> http://svn.borg.ch/svndumptool/

That looks great, although I will have to modify it to suit my needs
(convert all line endings to CRLF).
I'll give it a try.

Thanks!

Nico

Received on Wed Apr 25 10:40:33 2007

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.