##// END OF EJS Templates
configitems: register the 'patch.eol' config
marmoute -
r33226:dd50a370 default
parent child Browse files
Show More
@@ -110,6 +110,9 b" coreconfigitem('hostsecurity', 'ciphers'"
110 110 coreconfigitem('hostsecurity', 'disabletls10warning',
111 111 default=False,
112 112 )
113 coreconfigitem('patch', 'eol',
114 default='strict',
115 )
113 116 coreconfigitem('patch', 'fuzz',
114 117 default=2,
115 118 )
@@ -2077,7 +2077,7 b' def patchbackend(ui, backend, patchobj, '
2077 2077 if files is None:
2078 2078 files = set()
2079 2079 if eolmode is None:
2080 eolmode = ui.config('patch', 'eol', 'strict')
2080 eolmode = ui.config('patch', 'eol')
2081 2081 if eolmode.lower() not in eolmodes:
2082 2082 raise error.Abort(_('unsupported line endings type: %s') % eolmode)
2083 2083 eolmode = eolmode.lower()
General Comments 0
You need to be logged in to leave comments. Login now