~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

  • Committer: Martin Pool
  • Date: 2005-09-30 03:38:47 UTC
  • mfrom: (1393.2.4)
  • mto: (1185.14.2)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: mbp@sourcefrog.net-20050930033847-e78ce2a6670c1a29
- merge Transport from John into newformat

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from bzrlib.branch import Branch
26
26
from bzrlib.trace import mutter
27
27
 
 
28
# TODO: Optionally, after copying, discard any irrelevant information from
 
29
# the destination - e.g. 
28
30
 
29
31
def copy_branch(branch_from, to_location, revision=None, basis_branch=None):
30
32
    """Copy branch_from into the existing directory to_location.
41
43
        The revision to copy up to
42
44
 
43
45
    basis_branch
44
 
        A local branch to copy revisions from, related to branch_from
 
46
        A local branch to copy revisions from, related to branch_from. 
 
47
        This is used when branching from a remote (slow) branch, and we have
 
48
        a local branch that might contain some relevant revisions.
45
49
    """
46
50
    assert isinstance(branch_from, Branch)
47
51
    assert isinstance(to_location, basestring)