mdiff: move re-exports to top
authorYuya Nishihara <yuya@tcha.org>
Tue, 02 May 2017 17:05:22 +0900
changeset 32200 2d84947cd85d
parent 32199 2bf62ca7072f
child 32201 4462a981e8df
mdiff: move re-exports to top This style seems more common in our codebase.
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