~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.py

  • Committer: Aaron Bentley
  • Date: 2005-09-29 21:07:17 UTC
  • mfrom: (1393.1.6)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: abentley@panoramicfeedback.com-20050929210717-cd73981590f17017
Merged the weave changes

Show diffs side-by-side

added added

removed removed

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