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

Re: Error with svn diff

From: Tony Butt <Tony.Butt_at_cea.com.au>
Date: Thu, 28 Apr 2011 11:06:36 +1000

On Wed, 2011-04-27 at 02:05 -0500, Ryan Schmidt wrote:
> On Apr 26, 2011, at 18:46, Tony Butt wrote:
>
> > On Fri, 2011-04-15 at 02:31 -0500, Ryan Schmidt wrote:
> >>
> >
> >> Is it possible the document has mixed line ending styles? -- some lines ending with CRLF and some ending with LF? If so, fix this, ideally by making use of the svn:eol-style property.
> >>
> >
> > It is probable the document has mixed line style endings - I have
> > updated the line endings in a test repository, but that does not help
> > with a historical diff.
>
> If you can afford to take the repository offline for awhile, and force everybody to check out new working copies, you can fix your historical line endings by using svndumptool's eolfix option.
>
> http://svn.borg.ch/svndumptool/
>
>
Unfortunately not practical, unless I work overnight.
>From past experience with our repo, that takes several hours.

For me, using an external diff (gnu diff) with the offending package
(codestriker) works fine in this case.
> > In the meantime, I am trying to educate the
> > engineers involved about the merits of auto-props, so this is less
> > likely to happen in the future.
>
> Do educate on which files should have svn:eol-style set to what value, and do encourage developers to use auto-props to automate what they learned, but also install a pre-commit hook script in the repository that absolutely prevents the problem from happening in the future. If you've decided for example that .txt files shall have the svn:eol-style set to native, then write and install a pre-commit hook script that prevents anyone from adding any .txt file that does not have svn:eol-style set to native.
>
Do you know offhand of a similar script to require particular
properties?
>

-- 
Tony Butt <Tony.Butt_at_cea.com.au>
CEA Technologies
Received on 2011-04-28 03:06:32 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.