mpatch: proxy through mdiff module
See the previous commit for why.
--- a/contrib/bdiff-torture.py Wed Apr 26 22:03:37 2017 +0900
+++ b/contrib/bdiff-torture.py Wed Apr 26 22:05:59 2017 +0900
@@ -6,7 +6,6 @@
from mercurial import (
mdiff,
- mpatch,
)
def reducetest(a, b):
@@ -45,7 +44,7 @@
d = mdiff.textdiff(a, b)
if not d:
raise ValueError("empty")
- c = mpatch.patches(a, [d])
+ c = mdiff.patches(a, [d])
if c != b:
raise ValueError("bad")
--- a/tests/test-bdiff.py Wed Apr 26 22:03:37 2017 +0900
+++ b/tests/test-bdiff.py Wed Apr 26 22:05:59 2017 +0900
@@ -5,7 +5,6 @@
from mercurial import (
mdiff,
- mpatch,
)
class diffreplace(
@@ -19,7 +18,7 @@
d = mdiff.textdiff(a, b)
c = a
if d:
- c = mpatch.patches(a, [d])
+ c = mdiff.patches(a, [d])
self.assertEqual(
c, b, ("bad diff+patch result from\n %r to\n "
"%r: \nbdiff: %r\npatched: %r" % (a, b, d, c[:200])))