/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Ian Clatworthy
  • Date: 2007-11-21 15:10:44 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-20071121151044-pnn0r0kwttjvzlfb
incorporate review feedback including basic blackbox tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
4284
4284
    takes_args = ['to_location']
4285
4285
 
4286
4286
    def run(self, to_location):
4287
 
        from bzrlib.switch import switch
 
4287
        from bzrlib import switch
4288
4288
        to_branch = Branch.open(to_location)
4289
4289
        tree_location = '.'
4290
 
        control_dir = BzrDir.open_containing(tree_location)[0]
4291
 
        switch(control_dir, to_branch)
 
4290
        control_dir = bzrdir.BzrDir.open_containing(tree_location)[0]
 
4291
        switch.switch(control_dir, to_branch)
4292
4292
        note('Switched to branch: %s',
4293
4293
            urlutils.unescape_for_display(to_branch.base, 'utf-8'))
4294
4294