~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Robert Collins
  • Date: 2006-07-24 11:26:40 UTC
  • mto: (1852.9.1 Tree.compare().)
  • mto: This revision was merged to the branch mainline in revision 1892.
  • Revision ID: robertc@robertcollins.net-20060724112640-be0b51262ce4a2b6
Implement an InterTreeTestProvider and a trivial test_compare test case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
 
337
337
    _optimisers = set()
338
338
 
339
 
 
340
 
 
 
339
    def compare(self):
 
340
        """Compare source and target.
 
341
 
 
342
        :return: A TreeDelta.
 
343
        """
 
344
        # imported later to avoid circular imports
 
345
        from bzrlib.delta import compare_trees
 
346
        return compare_trees(self.source, self.target)