##// END OF EJS Templates
eol: document new eol.fix-trailing-newline setting
Martin Geisler -
r14856:9f5cd6b6 default
parent child Browse files
Show More
@@ -52,9 +52,10 b' Example versioned ``.hgeol`` file::'
52 The rules will first apply when files are touched in the working
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.
53 copy, e.g. by updating to null and back to tip to touch all files.
54
54
55 The extension uses an optional ``[eol]`` section in your hgrc file
55 The extension uses an optional ``[eol]`` section read from both the
56 (not the ``.hgeol`` file) for settings that control the overall
56 normal Mercurial configuration files and the ``.hgeol`` file, with the
57 behavior. There are two settings:
57 latter overriding the former. You can use that section to control the
58 overall behavior. There are three settings:
58
59
59 - ``eol.native`` (default ``os.linesep``) can be set to ``LF`` or
60 - ``eol.native`` (default ``os.linesep``) can be set to ``LF`` or
60 ``CRLF`` to override the default interpretation of ``native`` for
61 ``CRLF`` to override the default interpretation of ``native`` for
@@ -67,6 +68,10 b' behavior. There are two settings:'
67 Such files are normally not touched under the assumption that they
68 Such files are normally not touched under the assumption that they
68 have mixed EOLs on purpose.
69 have mixed EOLs on purpose.
69
70
71 - ``eol.fix-trailing-newline`` (default False) can be set to True to
72 ensure that converted files end with a EOL character (either ``\n``
73 or ``\r\n`` as per the configured patterns).
74
70 The extension provides ``cleverencode:`` and ``cleverdecode:`` filters
75 The extension provides ``cleverencode:`` and ``cleverdecode:`` filters
71 like the deprecated win32text extension does. This means that you can
76 like the deprecated win32text extension does. This means that you can
72 disable win32text and enable eol and your filters will still work. You
77 disable win32text and enable eol and your filters will still work. You
General Comments 0
You need to be logged in to leave comments. Login now