5482
5483
this_url = self._get_branch_location(control_dir)
5484
5485
urlutils.join(this_url, '..', to_location))
5488
switch.switch(control_dir, to_branch, force, revision_id=revision)
5487
5490
branch = control_dir.open_branch() #get the new branch!
5488
5491
branch.nick = to_branch.nick