Re: Script or process to fix old invalid data in repositories or dumps?
From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 5 Apr 2014 11:12:02 +0000
Mark Phippard wrote on Fri, Apr 04, 2014 at 13:30:48 -0400:
That's easy enough:
[[[
(It should be easy enough to convert this to plain sh --- all the {} and
That doesn't fix node properties, but it cannot do this on an existing
In my testing, the 'svnlook proplist' part errors out when a property
> Another problem I've seen is when the data is not UTF8. I know you can use
I imagine you can just take the above script and change:
=(svn propget --strict ...)
to
=(svn propget --strict ... | iconv -f iso-8859-1 -t utf-8)
I'm not sure whether config:miscellany:log-encoding needs to be unset,
> If not, does svnsync at least auto-fix the line-ending problem?
Yep:
[[[
This behaviour is in 1.7, probably earlier too.
Daniel
P.S. =(cmd) is shorthand for 'a plain file whose contents is the output of cmd'.
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.