~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testmerge.py

lalos branch constructor patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
class TestMerge(TestCaseInTempDir):
8
8
    """Test appending more than one revision"""
9
9
    def test_pending(self):
10
 
        br = Branch(".", init=True)
 
10
        br = Branch.initialize(".")
11
11
        commit(br, "lala!")
12
12
        self.assertEquals(len(br.pending_merges()), 0)
13
13
        merge(['.', -1], [None, None])
16
16
    def test_nocommits(self):
17
17
        self.test_pending()
18
18
        os.mkdir('branch2')
19
 
        br2 = Branch('branch2', init=True)
 
19
        br2 = Branch.initialize('branch2')
20
20
        self.assertRaises(NoCommits, merge, ['branch2', -1], 
21
21
                          [None, None])
22
22
        return br2