~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.py

  • Committer: Robert Collins
  • Date: 2005-09-14 09:01:06 UTC
  • mto: (1185.1.12)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: robertc@robertcollins.net-20050914090106-50ddfad9500a8ae9
make diff lsdiff/filterdiff friendly

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
            self.modified, self.unchanged)
70
70
 
71
71
    def has_changed(self):
72
 
        return bool(self.modified
73
 
                    or self.added
74
 
                    or self.removed
75
 
                    or self.renamed)
 
72
        changes = len(self.added) + len(self.removed) + len(self.renamed)
 
73
        changes += len(self.modified) 
 
74
        return (changes != 0)
76
75
 
77
76
    def touches_file_id(self, file_id):
78
77
        """Return True if file_id is modified by this delta."""