# HG changeset patch # User Yuya Nishihara # Date 1493712322 -32400 # Node ID 2d84947cd85d820ff77b2f49ad12b95186497f6e # Parent 2bf62ca7072fc5e55d3ed49ccea47c3d5c0aee35 mdiff: move re-exports to top This style seems more common in our codebase. diff -r 2bf62ca7072f -r 2d84947cd85d mercurial/mdiff.py --- 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