4482
4482
to_branch = Branch.open(to_location)
4483
4483
except errors.NotBranchError:
4484
4484
this_branch = control_dir.open_branch()
4485
4486
this_url = this_branch.get_bound_location()
4488
4489
this_url = this_branch.base
4491
4492
switch.switch(control_dir, to_branch, force)
4492
4493
note('Switched to branch: %s',
4493
4494
urlutils.unescape_for_display(to_branch.base, 'utf-8'))