~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_check.py

Fix all tests broken by fixing make_branch_and_tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        # Now, try to set an invalid history
44
44
        try:
45
45
            tree.branch.set_revision_history([r1, r2b, r5])
 
46
            if tree.branch.last_revision_info() != (3, r5):
 
47
                # RemoteBranch silently corrects an impossible revision
 
48
                # history given to set_revision_history.  It can be tricked
 
49
                # with set_last_revision_info though.
 
50
                tree.branch.set_last_revision_info(3, r5)
46
51
        except errors.NotLefthandHistory:
47
52
            # Branch5 allows set_revision_history to be wrong
48
53
            # Branch6 raises NotLefthandHistory, but we can force bogus stuff