~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testremotebranch.py

lalos branch constructor patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
        def new_branch(name):
31
31
            os.mkdir(name)
32
 
            return Branch(name, init=True)
 
32
            return Branch.initialize(name)
33
33
            
34
34
        #highest indices a: 5, b: 7
35
35
        br_a, br_b = make_branches()
36
 
        br_rem = find_branch(self.get_remote_url(br_a.base))
 
36
        br_rem = Branch.open(self.get_remote_url(br_a.base))
37
37
        assert not has_revision(br_b, br_rem.revision_history()[3])
38
38
        assert has_revision(br_b, br_rem.revision_history()[2])
39
39
        assert len(br_b.revision_history()) == 7