~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testmerge.py

  • Committer: Lalo Martins
  • Date: 2005-09-15 15:28:33 UTC
  • mto: (1185.1.22)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: lalo@exoweb.net-20050915152832-1b23c36b1f0fffc4
made tests pass again, after merge from integration

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