Mercurial > hg
changeset 32200:2d84947cd85d
mdiff: move re-exports to top
This style seems more common in our codebase.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 02 May 2017 17:05:22 +0900 |
parents | 2bf62ca7072f |
children | 4462a981e8df |
files | mercurial/mdiff.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/mdiff.py Tue May 02 19:10:55 2017 +0900 +++ b/mercurial/mdiff.py Tue May 02 17:05:22 2017 +0900 @@ -21,6 +21,10 @@ 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 replacediffheader(oldlen, newlen): return struct.pack(">lll", 0, oldlen, newlen) - -patches = mpatch.patches -patchedsize = mpatch.patchedsize -textdiff = bdiff.bdiff