~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testbranch.py

  • Committer: Robert Collins
  • Date: 2005-09-27 07:24:40 UTC
  • mfrom: (1185.1.41)
  • Revision ID: robertc@robertcollins.net-20050927072440-1bf4d99c3e1db5b3
pair programming worx... merge integration and weave

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    """Test appending more than one revision"""
27
27
    def test_append_revisions(self):
28
28
        from bzrlib.branch import Branch
29
 
        br = Branch(".", init=True)
 
29
        br = Branch.initialize(".")
30
30
        br.append_revision("rev1")
31
31
        self.assertEquals(br.revision_history(), ["rev1",])
32
32
        br.append_revision("rev2", "rev3")
40
40
        from bzrlib.fetch import Fetcher
41
41
        os.mkdir('b1')
42
42
        os.mkdir('b2')
43
 
        b1 = Branch('b1', init=True)
44
 
        b2 = Branch('b2', init=True)
 
43
        b1 = Branch.initialize('b1')
 
44
        b2 = Branch.initialize('b2')
45
45
        file(os.sep.join(['b1', 'foo']), 'w').write('hello')
46
46
        b1.add(['foo'], ['foo-id'])
47
47
        b1.commit('lala!', rev_id='revision-1', allow_pointless=False)