changeset 12975:278e3c9b939e

eol: added filter aliases for backwards compatibility with win32text This makes it possible to switch most win32text configurations (i.e. those that use cleverencode and cleverdecode) to hgeol simply by disabling one and enabling the other. Any rules found in repo-specific .hgeol files will be appended to the configuration in .hgrc.
author Colin Caughie <c.caughie@indigovision.com>
date Wed, 10 Nov 2010 20:26:56 +0000
parents 6e0a9f9227bd
children 793563fd88c0
files hgext/eol.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/eol.py
+++ b/hgext/eol.py
@@ -104,6 +104,9 @@
     'to-lf': tolf,
     'to-crlf': tocrlf,
     'is-binary': isbinary,
+    # The following provide backwards compatibility with win32text
+    'cleverencode': tolf,
+    'cleverdecode': tocrlf
 }