Submitter | Yuya Nishihara |
---|---|
Date | May 7, 2017, 1:45 a.m. |
Message ID | <9151ab042bb7e3001d0a.1494121543@mimosa> |
Download | mbox | patch |
Permalink | /patch/20500/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/mdiff.py b/mercurial/mdiff.py --- a/mercurial/mdiff.py +++ b/mercurial/mdiff.py @@ -21,6 +21,10 @@ from . import ( util, ) +patches = mpatch.patches +patchedsize = mpatch.patchedsize +textdiff = bdiff.bdiff + def splitnewlines(text): '''like str.splitlines, but only split on newlines.''' lines = [l + '\n' for l in text.split('\n')] @@ -478,7 +482,3 @@ def trivialdiffheader(length): def replacediffheader(oldlen, newlen): return struct.pack(">lll", 0, oldlen, newlen) - -patches = mpatch.patches -patchedsize = mpatch.patchedsize -textdiff = bdiff.bdiff