On Wed, Sep 8, 2010 at 11:27 AM, Campbell Allan <campbell.al...@sword-ciboodle.com> wrote:
> The part of the book that I felt was relevant is when the line ending is set > to native subversion will store the file in the repository with LF's only. > The client is then changing this to reflect the preferences of the client OS. Yeah, this can be nasty to stuff in a pre-commit hook. The use of the "native" EOL setting is almost always a mistake, especially with CIFS or NFS shared working directories. These cross-platform working copies are actually quite common for Java developers, especially becauase they often prefer the TortoiseSVN tool for managing their working copies. If you're publishing content for multiple operating systems, I'd question trying to outsmart people with pre-commit hooks. Sometimes, for example when publishing text documents like README.txt, you need to publish and store documents with the EOL stored for the other OS.