~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevision.py

  • Committer: Lalo Martins
  • Date: 2005-09-09 11:37:44 UTC
  • mto: (1185.1.22)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: lalo@exoweb.net-20050909113744-22f870db25a9e5f5
getting rid of everything that calls the Branch constructor directly

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    from bzrlib.commit import commit
23
23
    import os
24
24
    os.mkdir("branch1")
25
 
    br1 = Branch("branch1", init=True)
 
25
    br1 = Branch.initialize("branch1")
26
26
    
27
27
    commit(br1, "Commit one", rev_id="a@u-0-0")
28
28
    commit(br1, "Commit two", rev_id="a@u-0-1")
29
29
    commit(br1, "Commit three", rev_id="a@u-0-2")
30
30
 
31
31
    os.mkdir("branch2")
32
 
    br2 = Branch("branch2", init=True)
 
32
    br2 = Branch.initialize("branch2")
33
33
    br2.update_revisions(br1)
34
34
    commit(br2, "Commit four", rev_id="b@u-0-3")
35
35
    commit(br2, "Commit five", rev_id="b@u-0-4")