~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

(robertc) Introduce Tree interface implementation tests. This corrects behaviour differences in Tree implementations for the __iter__ interface which were revealed by the new tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
749
749
 
750
750
    inv = revision_tree.inventory
751
751
    
 
752
    # backwards compatability hack: skip the root id.
 
753
    entries = inv.iter_entries()
 
754
    entries.next()
752
755
    # Add the texts that are not already present
753
 
    for path, ie in inv.iter_entries():
 
756
    for path, ie in entries:
754
757
        w = repository.weave_store.get_weave_or_empty(ie.file_id,
755
758
                repository.get_transaction())
756
759
        if ie.revision not in w: