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

Re: calling dosunix at a newline mismatch

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Mon, 17 Nov 2008 08:57:15 -0800

On Mon, Nov 17, 2008 at 10:19:18AM +0100, thomas dettbarn wrote:
> and i was wondering: couldn't you guys make this dos2unix call
> mandatory? or optional through a commandline flag? or tell the users
> which of the files has such an inconsistancy?

Modifying the commit in-flight is considered bad practice that will lead
to heartache. Search the archives for details.

The standard way to handle this situation is to have your pre-commit
hook check for incorrect line endings and reject commits with those
bogus line endings. The rejection should contain a useful error message
(that will probably include instructions on how to use dos2unix).

hth,
tyler

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-17 17:57:42 CET

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.