~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.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:
1356
1356
    assert isinstance(branch_from, Branch)
1357
1357
    assert isinstance(to_location, basestring)
1358
1358
    
1359
 
    br_to = Branch(to_location, init=True)
 
1359
    br_to = Branch.initialize(to_location)
1360
1360
    br_to.set_root_id(branch_from.get_root_id())
1361
1361
    if revision is None:
1362
1362
        revno = branch_from.revno()