Show More
@@ -11,18 +11,20 b' configuration file every time you run an' | |||
|
11 | 11 | configuration files. It uses two sections, ``[patterns]`` and |
|
12 | 12 | ``[repository]``. |
|
13 | 13 | |
|
14 |
The ``[patterns]`` section specifies |
|
|
15 | working directory. The format is specified by a file pattern. The | |
|
16 | first match is used, so put more specific patterns first. The | |
|
17 | available line endings are ``LF``, ``CRLF``, and ``BIN``. | |
|
14 | The ``[patterns]`` section specifies how line endings should be | |
|
15 | converted between the working copy and the repository. The format is | |
|
16 | specified by a file pattern. The first match is used, so put more | |
|
17 | specific patterns first. The available line endings are ``LF``, | |
|
18 | ``CRLF``, and ``BIN``. | |
|
18 | 19 | |
|
19 | 20 | Files with the declared format of ``CRLF`` or ``LF`` are always |
|
20 | checked out in that format and files declared to be binary (``BIN``) | |
|
21 | are left unchanged. Additionally, ``native`` is an alias for the | |
|
22 | platform's default line ending: ``LF`` on Unix (including Mac OS X) | |
|
23 | and ``CRLF`` on Windows. Note that ``BIN`` (do nothing to line | |
|
24 | endings) is Mercurial's default behaviour; it is only needed if you | |
|
25 | need to override a later, more general pattern. | |
|
21 | checked out and stored in the repository in that format and files | |
|
22 | declared to be binary (``BIN``) are left unchanged. Additionally, | |
|
23 | ``native`` is an alias for checking out in the platform's default line | |
|
24 | ending: ``LF`` on Unix (including Mac OS X) and ``CRLF`` on | |
|
25 | Windows. Note that ``BIN`` (do nothing to line endings) is Mercurial's | |
|
26 | default behaviour; it is only needed if you need to override a later, | |
|
27 | more general pattern. | |
|
26 | 28 | |
|
27 | 29 | The optional ``[repository]`` section specifies the line endings to |
|
28 | 30 | use for files stored in the repository. It has a single setting, |
@@ -46,6 +48,10 b' Example versioned ``.hgeol`` file::' | |||
|
46 | 48 | [repository] |
|
47 | 49 | native = LF |
|
48 | 50 | |
|
51 | .. note:: | |
|
52 | The rules will first apply when files are touched in the working | |
|
53 | copy, e.g. by updating to null and back to tip to touch all files. | |
|
54 | ||
|
49 | 55 | The extension uses an optional ``[eol]`` section in your hgrc file |
|
50 | 56 | (not the ``.hgeol`` file) for settings that control the overall |
|
51 | 57 | behavior. There are two settings: |
General Comments 0
You need to be logged in to leave comments.
Login now