~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to patience-test.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-29 23:15:16 UTC
  • mfrom: (1711.2.25 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060529231516-cad98b5042ea75f3
(jam) Updates to PatienceDiff for performance, and other cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from tempfile import mkdtemp
22
22
 
23
23
from bzrlib.branch import Branch
24
 
from bzrlib.patiencediff import SequenceMatcher
 
24
import bzrlib.patiencediff
25
25
from bzrlib.diff import internal_diff
26
26
from bzrlib.osutils import pathjoin
27
27
 
62
62
                new_patch = StringIO()
63
63
                try:
64
64
                    internal_diff('old', old_lines, 'new', new_lines, new_patch,
65
 
                                  sequence_matcher=SequenceMatcher)
 
65
                        sequence_matcher=bzrlib.patiencediff.PatienceSequenceMatcher)
66
66
                except:
67
67
                    file(pathjoin(temp_dir, 'old'), 
68
68
                         'wb').write(''.join(old_lines))