~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Martin Pool
  • Date: 2005-06-10 01:47:12 UTC
  • Revision ID: mbp@sourcefrog.net-20050610014712-343b6d1968e12803
- add TreeDelta repr

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
        self.modified = []
277
277
        self.unchanged = []
278
278
 
 
279
    def __repr__(self):
 
280
        return "TreeDelta(added=%r, removed=%r, renamed=%r, modified=%r," \
 
281
            " unchanged=%r)" % (self.added, self.removed, self.renamed,
 
282
            self.modified, self.unchanged)
 
283
 
279
284
    def has_changed(self):
280
285
        changes = len(self.added) + len(self.removed) + len(self.renamed)
281
286
        changes += len(self.modified)