Size: 1035
Comment: Stub page
|
Size: 974
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== Extension Name == | == EOL Extension == |
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 = |
EOL Extension
This extension is distributed with Mercurial 1.5.4.
Author: Martin Geisler mg@lazybytes.net
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.
Configuration
Configure your .hgrc to enable the extension by adding following lines:
[extensions] eol =