Mercurial > public > mercurial-scm > hg
diff mercurial/patch.py @ 24268:cf7d252d8c30
patch.internalpatch: add a default value for prefix
Rev 60c279ab7bd3 adding a parameter here. This breaks third-party extensions
like crecord and also makes the issue fairly hard to fix on the extension's
side if it wants to retain compatibility across Mercurial versions -- in old
versions, the positional argument will be passed into the next unknown
argument, which is 'files'.
The patch also undoes a change to the record extension that is no longer
necessary.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 10 Mar 2015 17:34:42 -0700 |
parents | dc655360bccb |
children | 9a745ced79a9 |
line wrap: on
line diff
--- 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 <patchobj> to the working directory. returns whether patch was applied with fuzz factor."""