~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textmerge.py

  • Committer: Martin Pool
  • Date: 2006-04-20 02:37:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1675.
  • Revision ID: mbp@sourcefrog.net-20060420023721-04d8a3b015987240
Add .hg to default ignore list

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
 
import bzrlib.patiencediff
 
21
from difflib import SequenceMatcher
22
22
 
23
23
 
24
24
class TextMerge(object):
131
131
        """Return structured merge info.  
132
132
        See TextMerge docstring.
133
133
        """
134
 
        sm = bzrlib.patiencediff.PatienceSequenceMatcher(None, self.lines_a, self.lines_b)
 
134
        sm = SequenceMatcher(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():