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

Re: Dump filter correcting EOL style

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 22 Apr 2011 15:29:04 +0300

Stanimir Stamenkov wrote on Fri, Apr 22, 2011 at 14:36:53 +0300:
> Is anyone aware of repository dump filter [1] which corrects the EOL

Not me, but sounds like a one-off patch (to the "Create a new file"
logics of 'load' or 'svnsync') could do this pretty easily.

(Insert here quote about, given a hammer, viewing every problem as a nail.)

As you may know: if a file has uniform line endings, svn canonicalizes
them when the property is set. (though I don't remember if that's done
on the server-side too, or only on the client side)

Daniel

> style of files, by initializing their svn:eol-style property in
> their first revision according to the [auto-props] section [2], and
> then correcting the EOL style in their content according to the
> svn:eol-style value? I've googled a bit but couldn't find any such.
>
> [1] <http://svnbook.red-bean.com/nightly/en/svn.ref.svnadmin.c.dump.html>, <http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering>
> [2] <http://svnbook.red-bean.com/nightly/en/svn.advanced.confarea.html#svn.advanced.confarea.opts.config>
>
> --
> Stanimir
Received on 2011-04-22 14:29:49 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.