~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/switch.py

  • Committer: Ian Clatworthy
  • Date: 2007-11-22 11:21:00 UTC
  • mto: (3015.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3016.
  • Revision ID: ian.clatworthy@internode.on.net-20071122112100-15wtitw0o1kwckit
more review tweaks including commit of blackbox tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    """Switch the branch associated with a checkout.
27
27
 
28
28
    :param control_dir: BzrDir of the checkout to change
29
 
    :param to_branch: branch that the checkout is to be bound to
 
29
    :param to_branch: branch that the checkout is to reference
30
30
    """
31
31
    _check_switch_branch_format(control_dir)
32
32
    _check_pending_merges(control_dir)
80
80
    """Set location value of a branch reference.
81
81
 
82
82
    :param control: BzrDir of the checkout to change
83
 
    :param to_branch: branch that the checkout is to be bound to.
 
83
    :param to_branch: branch that the checkout is to reference
84
84
    """
85
85
    transport = control.get_branch_transport(None)
86
86
    location = transport.put_bytes('location', to_branch.base)