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

Re: Migrating old format repositories (format 4), running into bad line endings

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 22 Aug 2016 21:24:20 +0000

Mark Phippard wrote on Mon, Aug 22, 2016 at 17:06:05 -0400:
> On Mon, Aug 22, 2016 at 2:11 PM, Eric Johnson <eric_at_tibco.com> wrote:
>
> > So I wrote myself a tool to go through all commit comments, and verify
> > that no "CRs" appear in the svn:log entry. If I find them, I rewrite the
> > log entry. That way, I can clean up existing repositories.
> >
> > However, I ran into a surprise. CR characters have also snuck into the
> > svn:ignore property, which is *not* a revprop, and cannot be fixed by any
> > of the tools available.
> >
> > I've seen that other people recommend editing the dump file directly, but
> > that makes me quite nervous, especially on an 8MB dump file. Hoping there's
> > a better way.
> >
>
> Have you tried creating a new repository with the format you want and then
> use svnsync to sync the data to it? I seem to recall that svnsync will fix
> the line endings as it syncs the log entries. I could be wrong though
> because I see that svnsync has a --source-prop-encoding option that we
> added for fixing non UTF8 log messages. So it is possible I am confusing
> with that option.

svnsync normalizes line endings to LF unconditionally.
(sync.c:change_dir_prop() calls normalize_string())
Received on 2016-08-22 23:24:38 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.