[PATCH] EOL: Added filter aliases for backwards compatibility with win32text

Colin Caughie c.caughie at indigovision.com
Wed Nov 10 14:45:55 CST 2010


# HG changeset patch
# User Colin Caughie <c.caughie at indigovision.com>
# Date 1289420816 0
# Node ID af987ba118675405cb2608f4d42a775556a8634e
# Parent e80128e40c044ea6619c3dc160df69ad36a8e5ff
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.

diff -r e80128e40c04 hgext/eol.py
--- a/hgext/eol.py      Wed Nov 10 15:44:19 2010 +0100
+++ b/hgext/eol.py      Wed Nov 10 20:43:58 2010 +0000
@@ -104,6 +104,9 @@
     'to-lf': tolf,
     'to-crlf': tocrlf,
     'is-binary': isbinary,
+    # The following provide backwards compatibility with win32text
+    'cleverencode': tolf,
+    'cleverdecode': tocrlf
 }



Latest News at: http://www.indigovision.com/news2010.php


More information about the Mercurial-devel mailing list