/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: John Arbash Meinel
  • Date: 2007-12-06 14:07:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3087.
  • Revision ID: john@arbash-meinel.com-20071206140707-gl2q6ukle2u1sb5x
Fix internal_diff to not fail when the texts are identical.
Related to bug #174337

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: