~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-12-06 17:57:05 UTC
  • mfrom: (3085.1.1 internal_diff_no_changes)
  • Revision ID: pqm@pqm.ubuntu.com-20071206175705-a3go0hme7nx1rr69
(John Arbash Meinel) Fix internal_diff to not abort when the texts
        are identical.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                      sequencematcher=sequence_matcher)
87
87
 
88
88
    ud = list(ud)
 
89
    if len(ud) == 0: # Identical contents, nothing to do
 
90
        return
89
91
    # work-around for difflib being too smart for its own good
90
92
    # if /dev/null is "1,0", patch won't recognize it as /dev/null
91
93
    if not oldlines: