Mercurial > hg
comparison hgext/eol.py @ 12974:75e4fade4ad9 stable
eol: exclude .hgtags file from eol translation (issue2493)
author | Colin Caughie <c.caughie@indigovision.com> |
---|---|
date | Sat, 13 Nov 2010 15:02:02 +0100 |
parents | c82cd7b08158 |
children | 793563fd88c0 20974e51383a |
comparison
equal
deleted
inserted
replaced
12972:7916a84c0758 | 12974:75e4fade4ad9 |
---|---|
174 self._decode['NATIVE'] = 'to-lf' | 174 self._decode['NATIVE'] = 'to-lf' |
175 else: | 175 else: |
176 self._decode['NATIVE'] = 'to-crlf' | 176 self._decode['NATIVE'] = 'to-crlf' |
177 | 177 |
178 eol = config.config() | 178 eol = config.config() |
179 # Our files should not be touched. The pattern must be | |
180 # inserted first override a '** = native' pattern. | |
181 eol.set('patterns', '.hg*', 'BIN') | |
182 # We can then parse the user's patterns. | |
179 eol.parse('.hgeol', data) | 183 eol.parse('.hgeol', data) |
180 | 184 |
181 if eol.get('repository', 'native') == 'CRLF': | 185 if eol.get('repository', 'native') == 'CRLF': |
182 self._encode['NATIVE'] = 'to-crlf' | 186 self._encode['NATIVE'] = 'to-crlf' |
183 else: | 187 else: |