~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mdiff.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-09 06:21:44 UTC
  • Revision ID: mbp@sourcefrog.net-20050409062144-e47a4b64106e4c21af99beaf
debugĀ output

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
def diff(a, b):
33
33
    d = difflib.SequenceMatcher(None, a, b)
 
34
    
 
35
    ## sys.stderr.write('  ~ real_quick_ratio: %.4f\n' % d.real_quick_ratio())
 
36
    
34
37
    for o, m, n, s, t in d.get_opcodes():
35
38
        if o == 'equal': continue
36
39
        # a[m:n] should be replaced by b[s:t]