~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-08-25 06:08:36 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050825060836-40b430abb9d341d9
unbreak cmd_branch now that something tests the core of it..

Show diffs side-by-side

added added

removed removed

Lines of Context:
1405
1405
    """Return a new tree-root file id."""
1406
1406
    return gen_file_id('TREE_ROOT')
1407
1407
 
1408
 
def copy_branch(branch_from, to_location, revision):
 
1408
 
 
1409
def pull_loc(branch):
 
1410
    # TODO: Should perhaps just make attribute be 'base' in
 
1411
    # RemoteBranch and Branch?
 
1412
    if hasattr(branch, "baseurl"):
 
1413
        return branch.baseurl
 
1414
    else:
 
1415
        return branch.base
 
1416
 
 
1417
 
 
1418
def copy_branch(branch_from, to_location, revision=None):
1409
1419
    """Copy branch_from into the existing directory to_location.
1410
1420
 
1411
1421
    If revision is not None, the head of the new branch will be revision.