Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2010-05-29 15:26:49
Size: 1037
Comment:
Revision 4 as of 2010-05-31 19:52:38
Size: 1055
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''This extension is not distributed with Mercurial.''' '''This extension is distributed with Mercurial 1.5.4.'''
Line 6: Line 6:

Download site: http://bitbucket.org/mg/hg-eol/
Line 13: Line 11:
 * Windows traditionally uses CRLF ('\r\n', carriage-return followed by line-feed). The default text editor on Windows, Notepad, only understands CRLF. Command line tools and redirection also uses CRLF.
 * Unix and Linux traditionally uses LF ('\n') on Unix. Many tools can handle CRLF, but sometimes the native format is essential.
 * Older versions of Mac OS used CR ('\r'), but Mac OS X and later is Unix and uses LF.
 * Windows traditionally uses CRLF (`\r\n`, carriage-return followed by line-feed). The default text editor on Windows, Notepad, only understands CRLF. Command line tools and redirection also uses CRLF.
 * Unix and Linux traditionally uses LF (`\n`) on Unix. Many tools can handle CRLF, but sometimes the native format is essential.
 * Older versions of Mac OS used CR (`\r`), but Mac OS X and later is Unix and uses LF.
Line 20: Line 18:
Configure your .hgrc to enable the extension by adding following lines: Configure your `.hgrc` to enable the extension by adding following lines:
Line 24: Line 22:
eol = ~/path/to/eol.py eol =
Line 27: Line 25:
Then please see `hg help eol` for details on how to configure the extension.

/!\ Expand this section.
Line 28: Line 30:
CategoryExtension CategoryExtensionsByOthers CategoryExtension

EOL Extension

This extension is distributed with Mercurial 1.5.4.

Author: Martin Geisler mg@lazybytes.net

1. Overview

Different platforms have different conventions for representation of line endings in text files:

  • Windows traditionally uses CRLF (\r\n, carriage-return followed by line-feed). The default text editor on Windows, Notepad, only understands CRLF. Command line tools and redirection also uses CRLF.

  • Unix and Linux traditionally uses LF (\n) on Unix. Many tools can handle CRLF, but sometimes the native format is essential.

  • Older versions of Mac OS used CR (\r), but Mac OS X and later is Unix and uses LF.

This extension will let your configure Mercurial to write text files using line endings that match your OS.

2. Configuration

Configure your .hgrc to enable the extension by adding following lines:

[extensions]
eol =

Then please see hg help eol for details on how to configure the extension.

/!\ Expand this section.


CategoryExtension

EolExtension (last edited 2013-08-26 20:58:53 by BryanHoffpauir)