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

Fwd: Standardize on ASCII type: dos2unix pre-commit hook?

From: Emmanuel Blot <manu.blot_at_gmail.com>
Date: 2006-03-13 02:03:50 CET

---------- Forwarded message ----------
From: Emmanuel Blot <manu.blot@gmail.com>
Date: Mar 13, 2006 2:03 AM
Subject: Re: Standardize on ASCII type: dos2unix pre-commit hook?
To: Matthew England <mengland@mengland.net>

> I'd like to auto-force a standard unix text across certain repos (if not
> all of them). My current thinking is to run a dos2unix/mac2unix pre-commit
> hook. Is this a good/best way to go?

AFAIK, you should not attempt to change the content of an ongoing
transaction within a pre-commit hook, so this means you're not allowed
to change the content of a file, such as translating the LF ending

Can't you use the svn:eol-style propery combined with the
"auto-properties" feature instead ?

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 13 02:04:27 2006

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.