mercurial/mdiff.py
changeset 432 3b9e3d3d2810
parent 396 8f8bb77d560e
child 515 03f27b1381f9
--- a/mercurial/mdiff.py	Wed Jun 22 11:21:04 2005 -0800
+++ b/mercurial/mdiff.py	Wed Jun 22 11:23:01 2005 -0800
@@ -5,8 +5,8 @@
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
 
-import difflib, struct
-from mercurial.mpatch import *
+import difflib, struct, bdiff
+from mpatch import *
 
 def unidiff(a, ad, b, bd, fn, r=None):
 
@@ -43,9 +43,6 @@
 
     return "".join(l)
 
-def textdiff(a, b):
-    return diff(a.splitlines(1), b.splitlines(1))
-
 def sortdiff(a, b):
     la = lb = 0
     lena = len(a)
@@ -118,3 +115,7 @@
 
 def patch(a, bin):
     return patches(a, [bin])
+
+textdiff = bdiff.bdiff
+
+