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

Re: What do you Hate about Subversion?

From: B. Smith-Mannschott <benpsm_at_gmail.com>
Date: 2007-02-01 16:16:08 CET

On Feb 1, 2007, at 15:49, Stefan Langer wrote:

> Why don't you simply hook in a precommit hook that converts the
> line endings automatically

Can't do that. Pre-commit hooks must not change what's being committed.

> or rejects the commit if you have mixed line endings.

Yup. I've got a hook script on our primary repository which checks
text (*.txt) files and only accepts them if:

(1) svn:eol-style == native
(2) encoding appears to be UTF-8.

> It is out of control for subversion to know if the checkedout files
> are run on unix, windows or any other OS.

// Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 1 16:16:39 2007

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.