Re: fixing files committed with wrong eol-style

2010-07-21 Thread Nico Kadel-Garcia
On Tue, Jul 20, 2010 at 10:16 AM, Les Mikesell wrote: > On 7/20/2010 12:49 AM, Nico Kadel-Garcia wrote: >> Look, *BREAK* the history. History is overvalued: Make a clean tag >> with your final pre-switchover release, with a note explaining what >> happened, and make an entirely new repository or

Re: fixing files committed with wrong eol-style

2010-07-20 Thread Ryan Schmidt
On Jul 20, 2010, at 09:35, Neil Bird wrote: > 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 'sv

Re: Re: fixing files committed with wrong eol-style

2010-07-20 Thread David Weintraub
On Mon, Jul 19, 2010 at 11:10 PM, Kitching, Simon wrote: > On Wed, 2010-07-14 at 10:35 -0400, David Weintraub wrote: >> I have a pre-commit hook that will verify that particular files have >> svn:eol-style set before allowing a commit. This way, you can make >> sure that the property is set befor

Re: fixing files committed with wrong eol-style

2010-07-20 Thread Neil Bird
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 t

Re: fixing files committed with wrong eol-style

2010-07-20 Thread Les Mikesell
On 7/20/2010 12:49 AM, Nico Kadel-Garcia wrote: On Tue, Jul 20, 2010 at 12:26 AM, Les Mikesell wrote: On 7/19/2010 10:10 PM, Kitching, Simon wrote: 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 s

Re: fixing files committed with wrong eol-style

2010-07-19 Thread Nico Kadel-Garcia
On Tue, Jul 20, 2010 at 12:26 AM, Les Mikesell wrote: > On 7/19/2010 10:10 PM, Kitching, Simon wrote: >> >> 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

Re: fixing files committed with wrong eol-style

2010-07-19 Thread Les Mikesell
On 7/19/2010 10:10 PM, Kitching, Simon wrote: 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

Re: Re: fixing files committed with wrong eol-style

2010-07-19 Thread Kitching, Simon
Hi David et al., On Mon, Jul 12, 2010 at 10:58 PM, Kitching, Simon > > We've got a repository containing a lot of text-files committed from windows > > systems without the svn:eol-style=native setting. Some developers now want > > to work on these from Linux. > > > > > > > > I would therefore like

Re: fixing files committed with wrong eol-style

2010-07-14 Thread David Weintraub
I have a pre-commit hook that will verify that particular files have svn:eol-style set before allowing a commit. This way, you can make sure that the property is set before anyone can do a commit. What IDE are you using? If you're not using an IDE, what program editor are you using. Please, tell m

Re: fixing files committed with wrong eol-style

2010-07-14 Thread Geoff Worboys
[...] > On Unix, a script with CR-LF is really unlikely to work, > either with Bash, Perl or others... I will take your word for this, but this: > The same way a .bat script on Windows fails if LF. is no longer true (XP+, not tested earlier) - or at least not 100% true, there may be situations I

Re: fixing files committed with wrong eol-style

2010-07-14 Thread Yves Martin
- "Geoff Worboys" a écrit : > My apologies if my raising of this was seen as trolling. I > was not attempting too suggest which was the best for all > situations, simply that Nico's solution is viable for many > projects these days. > > Obviously if you are going to continue to use old *nix

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Geoff Worboys
Geoff Worboys wrote: >> (Forcing users to deal with the reply-to stuff on this list >> is something of a pain don't you think. As if I need the list >> copy and a CC copy. Never mind...) Ryan Schmidt wrote: > No, we don't think so. > http://subversion.apache.org/docs/community-guide/mailing-list

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Nico Kadel-Garcia
On Tue, Jul 13, 2010 at 10:44 AM, Les Mikesell wrote: > On 7/13/2010 8:57 AM, Geoff Worboys wrote: >> >> Les Mikesell wrote: >>> >>> There are workarounds but you can't just expect things to >>> work in general and pretend it is normal.  And some of >>> those workarounds may involve silently chang

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Geoff Worboys
Les Mikesell wrote: >> If you have to worry about mistakes, you are doing >> workarounds. What windows editor will create new files >> with LF endings by default? Notepad++ can be configured to do so: http://notepad-plus.sourceforge.net/ as can Programmer's Notepad: http://www.pnotepad.org/ both b

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Yves Martin
On Tue, 2010-07-13 at 09:44 -0500, Les Mikesell wrote: > On 7/13/2010 8:57 AM, Geoff Worboys wrote: > > Les Mikesell wrote: > >> There are workarounds but you can't just expect things to > >> work in general and pretend it is normal. And some of > >> those workarounds may involve silently changing

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Ryan Schmidt
On Jul 13, 2010, at 08:10, Geoff Worboys wrote: > (Forcing users to deal with the reply-to stuff on this list > is something of a pain don't you think. As if I need the list > copy and a CC copy. Never mind...) No, we don't think so. http://subversion.apache.org/docs/community-guide/mailing-li

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Les Mikesell
On 7/13/2010 8:57 AM, Geoff Worboys wrote: Les Mikesell wrote: There are workarounds but you can't just expect things to work in general and pretend it is normal. And some of those workarounds may involve silently changing to the preferred local line endings - and if anything but subversion its

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Geoff Worboys
Les Mikesell wrote: > There are workarounds but you can't just expect things to > work in general and pretend it is normal. And some of > those workarounds may involve silently changing to the > preferred local line endings - and if anything but subversion > itself does that it becomes a change in

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Les Mikesell
Geoff Worboys wrote: (Forcing users to deal with the reply-to stuff on this list is something of a pain don't you think. As if I need the list copy and a CC copy. Never mind...) Les Mikesell wrote: Errr... Shared directories are the bad idea here. Svn is perfectly capable of managing a copy

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Geoff Worboys
(Forcing users to deal with the reply-to stuff on this list is something of a pain don't you think. As if I need the list copy and a CC copy. Never mind...) Les Mikesell wrote: > Errr... Shared directories are the bad idea here. Svn is > perfectly capable of managing a copy for everyone and te

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Les Mikesell
Nico Kadel-Garcia wrote: On Tue, Jul 13, 2010 at 3:46 AM, Giulio Troccoli wrote: Hello, Without the "svn:eol-style" property any file content is considered as binary. At that point, checkouted files on Windows and Linux have "CR-LF" eol. ASAIK this is not true. Subversion has a clever way to

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Nico Kadel-Garcia
On Tue, Jul 13, 2010 at 3:46 AM, Giulio Troccoli wrote: >>  Hello, >> >> Without the "svn:eol-style" property any file content is >> considered as binary. >> At that point, checkouted files on Windows and Linux have "CR-LF" eol. > > ASAIK this is not true. Subversion has a clever way to tell wheth

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Ulrich Eckhardt
On Tuesday 13 July 2010, Giulio Troccoli wrote: > > Hello, > > > > Without the "svn:eol-style" property any file content is > > considered as binary. > > At that point, checkouted files on Windows and Linux have "CR-LF" eol. > > ASAIK this is not true. Subversion has a clever way to tell whether a

RE: fixing files committed with wrong eol-style

2010-07-13 Thread Giulio Troccoli
> Hello, > > Without the "svn:eol-style" property any file content is > considered as binary. > At that point, checkouted files on Windows and Linux have "CR-LF" eol. ASAIK this is not true. Subversion has a clever way to tell whether a file is text or binary by looking at the file itself. I bel

Re: fixing files committed with wrong eol-style

2010-07-13 Thread Yves Martin
Hello, Without the "svn:eol-style" property any file content is considered as binary. At that point, checkouted files on Windows and Linux have "CR-LF" eol. If you want to run your script on Linux, you should run a "dos2unix" (or equivalent) and add the property "svn:eol-style" on your files be