4482
4482
to_branch = Branch.open(to_location)
4483
4483
except errors.NotBranchError:
4484
4484
this_branch = control_dir.open_branch()
4485
4486
# This might be a heavyweight checkout
4490
4491
switch.switch(control_dir, to_branch, force)
4491
4492
note('Switched to branch: %s',
4492
4493
urlutils.unescape_for_display(to_branch.base, 'utf-8'))