[meld] Use MyersSequenceMatcher by default



commit 1d573fcf3b10ac85803be56391b6cb4f7ec447e7
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Oct 1 06:19:22 2010 +1000

    Use MyersSequenceMatcher by default

 meld/diffutil.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meld/diffutil.py b/meld/diffutil.py
index 1a4f598..d184e15 100644
--- a/meld/diffutil.py
+++ b/meld/diffutil.py
@@ -19,6 +19,8 @@ import difflib
 
 import gobject
 
+from matchers import MyersSequenceMatcher
+
 ################################################################################
 #
 # Differ
@@ -74,7 +76,7 @@ class Differ(gobject.GObject):
         'diffs-changed': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ()),
     }
 
-    _matcher = IncrementalSequenceMatcher
+    _matcher = MyersSequenceMatcher
 
     def __init__(self):
         # Internally, diffs are stored from text1 -> text0 and text1 -> text2.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]