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

Re: fixing files committed with wrong eol-style

From: Neil Bird <neil_at_fnxweb.com>
Date: Tue, 20 Jul 2010 15:35:41 +0100

Around about 20/07/10 04:10, Kitching, Simon typed ...
> Ah well, as it appears that nobody here knows the answer I'll just have
> to do it the ugly way: try to get the svn repo administrator to install
> some hooks to prevent this occurring in future, and then install cygwin
> on somebody's windows PC to script the adding of eol-style=native to
> relevant existing files.

   I'm thinking aloud here, you may not be able to do it, but if you can add
props. as a direct repo. mod., them maybe it'd be easier for you to:

- create a temp working branch off trunk
- use a 'find' loop to find the files, but instead of 'svn ps svn:eol-style
{}' use 'http:/part/to/repo/'{} [if that will work with find!] with a '-m'
comment.
- merge the whole bally lot back to trunk and delete the branch

   Yes, you'll add a gazillion revs. via the branch, but the mod. will
appear as atomic on trunk.

-- 
[neil_at_fnx ~]# rm -f .signature
[neil_at_fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil_at_fnx ~]# exit
Received on 2010-07-20 16:38: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.