diff mercurial/patch.py @ 33229:dd50a370c8cb

configitems: register the 'patch.eol' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:43:35 +0200
parents 5ebf39ae10ed
children f7b635716ef2
line wrap: on
line diff
--- a/mercurial/patch.py	Fri Jun 30 03:44:16 2017 +0200
+++ b/mercurial/patch.py	Fri Jun 30 03:43:35 2017 +0200
@@ -2077,7 +2077,7 @@
     if files is None:
         files = set()
     if eolmode is None:
-        eolmode = ui.config('patch', 'eol', 'strict')
+        eolmode = ui.config('patch', 'eol')
     if eolmode.lower() not in eolmodes:
         raise error.Abort(_('unsupported line endings type: %s') % eolmode)
     eolmode = eolmode.lower()