comparison hgext/eol.py @ 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 c82cd7b08158
children 793563fd88c0
comparison
equal deleted inserted replaced
12973:6e0a9f9227bd 12975:278e3c9b939e
102 102
103 filters = { 103 filters = {
104 'to-lf': tolf, 104 'to-lf': tolf,
105 'to-crlf': tocrlf, 105 'to-crlf': tocrlf,
106 'is-binary': isbinary, 106 'is-binary': isbinary,
107 # The following provide backwards compatibility with win32text
108 'cleverencode': tolf,
109 'cleverdecode': tocrlf
107 } 110 }
108 111
109 112
110 def hook(ui, repo, node, hooktype, **kwargs): 113 def hook(ui, repo, node, hooktype, **kwargs):
111 """verify that files have expected EOLs""" 114 """verify that files have expected EOLs"""