~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to switch.py

  • Committer: Aaron Bentley
  • Date: 2006-06-13 02:31:28 UTC
  • mfrom: (0.1.119 shelf)
  • Revision ID: aaron.bentley@utoronto.ca-20060613023128-20f2ff3a212a6ea2
Pull in latest shelf stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from bzrlib.workingtree import WorkingTree
26
26
 
27
27
class cmd_switch(Command):
28
 
    """Set the branch of a lightweight checkout and update."""
 
28
    """Set the branch of a lightweight checkout and update.  <BZRTOOLS>"""
29
29
 
30
30
    takes_args = ['to_location']
31
31
 
94
94
        branch_format = BranchFormat.find_format(control)
95
95
        transport = control.get_branch_transport(None)
96
96
        branch = branch_format.open(control)
97
 
        location = transport.put_bytes('location', location)
 
97
        location = transport.put('location', location)