hgext/eol.py
branchstable
changeset 12974 75e4fade4ad9
parent 12802 c82cd7b08158
child 12976 793563fd88c0
child 12980 20974e51383a
--- a/hgext/eol.py	Thu Nov 11 02:10:37 2010 +0900
+++ b/hgext/eol.py	Sat Nov 13 15:02:02 2010 +0100
@@ -176,6 +176,10 @@
                 self._decode['NATIVE'] = 'to-crlf'
 
             eol = config.config()
+            # Our files should not be touched. The pattern must be
+            # inserted first override a '** = native' pattern.
+            eol.set('patterns', '.hg*', 'BIN')
+            # We can then parse the user's patterns.
             eol.parse('.hgeol', data)
 
             if eol.get('repository', 'native') == 'CRLF':