Issue882

Title Add standard hook to reject text files with CRLF
Priority feature Status resolved
Superseder Nosy List jglick, pmezard
Assigned To Topics windows

Created on 2007-12-19.18:36:36 by jglick, last changed 2008-01-08.23:05:02 by mpm.

Messages
msg4699 (view) Author: pmezard Date: 2007-12-25.19:34:00
In a5fe27b83a4a
msg4643 (view) Author: jglick Date: 2007-12-19.18:55:41
Patch sent to list.
msg4642 (view) Author: jglick Date: 2007-12-19.18:36:34
While the win32text extension does LF <-> CRLF conversion, and will issue a
warning in case a file already in the repository uses CRLF, it provides no
mechanism for verifying that incoming changes use LF. In a large development
team with some Windows users, it is virtually guaranteed that someone will
forget to set up the encode filter correctly and accidentally check in a file
using CRLF, which can cause warnings for other Windows users when they next
fetch changes. Since this is a general problem it is desirable to have a
pre-commit (or -push) hook available to reject such accidents earlier rather
than trying to fix them up after the fact.
History
Date User Action Args
2008-01-08 23:05:02mpmsetstatus: testing -> resolved
nosy: pmezard, jglick
2007-12-25 19:34:00pmezardsetstatus: chatting -> testing
nosy: + pmezard
messages: + msg4699
2007-12-19 18:55:42jglicksetstatus: unread -> chatting
messages: + msg4643
2007-12-19 18:36:36jglickcreate