~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to switch.py

  • Committer: Aaron Bentley
  • Date: 2006-05-11 12:58:10 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060511125810-df593fe2bf83751d
Add import for standalone test (why?)

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)