/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/tests/repository_implementations/test_repository.py

Remove all uses of compare_trees and replace with Tree.changes_from throughout bzrlib.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import bzrlib
24
24
from bzrlib import bzrdir, errors, repository
25
25
from bzrlib.branch import Branch, needs_read_lock, needs_write_lock
26
 
from bzrlib.delta import TreeDelta, compare_trees
 
26
from bzrlib.delta import TreeDelta
27
27
from bzrlib.errors import (FileExists,
28
28
                           NoSuchRevision,
29
29
                           NoSuchFile,
345
345
        trees2 = [repository.revision_tree(t) for t in revision_ids]
346
346
        assert len(trees1) == len(trees2)
347
347
        for tree1, tree2 in zip(trees1, trees2):
348
 
            delta = compare_trees(tree1, tree2)
349
 
            assert not delta.has_changed()
 
348
            assert not tree2.changes_from(tree1).has_changed()
350
349
 
351
350
    def test_get_deltas_for_revisions(self):
352
351
        repository = self.bzrdir.open_repository()