Line endings.

15 views
Skip to first unread message

Miguel de Icaza

unread,
Aug 9, 2009, 12:39:38 PM8/9/09
to C#-SQLite
A problem that I am running into with using Mercurial's repository is
that I am getting files in Windows format (CR + LF) while Unix expects
LF. The files are also not consistent internally, which means that
converting them back and forth still produces patches that are larger
than they should be.

I know that Subversion has an option to deal with this (svn:eol-style
native) that does the translation as the files are checked out, but I
have no idea how this is done in Mercurial.

Any ideas as to what to do with this?

Noah

unread,
Aug 10, 2009, 8:44:52 AM8/10/09
to C#-SQLite
I will convert all line endings to LF and request that all checkins
are LF format;

It will be a massive patch set, but not sure if I would clear and
restart Mecurial with a new baseline.

Any suggestions?

Noah

unread,
Aug 10, 2009, 9:50:33 AM8/10/09
to C#-SQLite
New massive patch posted with LF changes and removal of memory
allocations

Add the following lines to Mercurial's control file hgrc

Please add the following lines to your hgrc file to prevent CRLF
checkins

[extensions]
hgext.win32text=

[hooks]
# Reject commits which would introduce windows-style text" files

pretxncommit.crlf = python:hgext.win32text.forbidcrlf
Reply all
Reply to author
Forward
0 new messages