Changeset eba352b8e43b…
Parent 82fa505dabaa…
by
Changes to one file · Browse files at eba352b8e43b Showing diff from parent 82fa505dabaa Diff from another changeset...
@@ -112,8 +112,13 @@ pfiles = {}
curdir = os.getcwd()
try:
+ eolmode = ui.config('patch', 'eol', 'strict')
+ if eolmode.lower() not in patch.eolmodes:
+ eolmode = 'strict'
+ else:
+ eolmode = eolmode.lower()
os.chdir(repo.root)
- if patch.applydiff(ui, fp, pfiles) < 0:
+ if patch.applydiff(ui, fp, pfiles, eolmode=eolmode) < 0:
ok = False
self.showMessage.emit(_('Patch failed to apply'))
except patch.PatchError, err:
|
Loading...