line endings

Mark A. Flacy mflacy at verizon.net
Sat Feb 23 23:00:02 CST 2008


On 2008.02.23 21:54, Patrick Drechsler wrote:
> Hi,
> 
> the hgbook states that:
> 
> ,----[ http://hgbook.red-bean.com/hgbookch2.html ]
> | Note: The Windows version of Mercurial does not automatically convert
> | line endings between Windows and Unix styles. If you want to share
> | work with Unix users, you must do a little additional configuration
> | work. XXX Flesh this out.
> `----
> 
> What is the best working practice for this issue?

Use editors that can automatically do the right thing when given a file  
that contains all of one type of line ending.  Emacs is one. jEdit is  
another.  I'm sure there are more of them.

Unix shell scripts whose statements end in CRLF sequences will not run,  
as far as I've found out.  The error messages they give are not  
enlightening.

IMO, it is a very bad idea for the version control system to  
automagically change files.  Judging from the number of requests for  
such a feature, my opinion is not widespread.

-- 
Mark A. Flacy




More information about the Mercurial mailing list