diff -r 365fdbc54f1f -r cf7d252d8c30 mercurial/patch.py --- a/mercurial/patch.py Wed Mar 11 07:19:55 2015 -0700 +++ b/mercurial/patch.py Tue Mar 10 17:34:42 2015 -0700 @@ -1757,7 +1757,7 @@ raise PatchError(_('patch failed to apply')) return ret > 0 -def internalpatch(ui, repo, patchobj, strip, prefix, files=None, +def internalpatch(ui, repo, patchobj, strip, prefix='', files=None, eolmode='strict', similarity=0): """use builtin patch to apply to the working directory. returns whether patch was applied with fuzz factor."""