~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textmerge.py

  • Committer: Aaron Bentley
  • Date: 2006-05-30 15:55:36 UTC
  • mfrom: (1733 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: abentley@panoramicfeedback.com-20060530155536-debaf5530f1090cb
Merge from dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#         Aaron Bentley <aaron.bentley@utoronto.ca>
19
19
 
20
20
 
21
 
from difflib import SequenceMatcher
 
21
import bzrlib.patiencediff
22
22
 
23
23
 
24
24
class TextMerge(object):
131
131
        """Return structured merge info.  
132
132
        See TextMerge docstring.
133
133
        """
134
 
        sm = SequenceMatcher(None, self.lines_a, self.lines_b)
 
134
        sm = bzrlib.patiencediff.PatienceSequenceMatcher(None, self.lines_a, self.lines_b)
135
135
        pos_a = 0
136
136
        pos_b = 0
137
137
        for ai, bi, l in sm.get_matching_blocks():