svk switch — Update working copy to a different DEPOTPATH.
This subcommand updates your working copy to mirror a new DEPOTPATH—this must be a DEPOTPATH which shares a common ancestor with your working copy. This is the svk way to move a working copy to a new branch. See the section called “Switching a Working Copy” for an in-depth look at switching.
If you're currently inside the directory
vendors which was branched to
vendors-with-fix and you'd like to
switch your working copy to that branch:
$ svk switch //branches/vendors-with-fix Syncing //trunk(/trunk) in /Users/sally/vendors to 31. U myproj/foo.txt U myproj/bar.txt U myproj/baz.c U myproj/qux.c
And to switch back, just provide the DEPOTPATH to the location in the repository from which you originally checked out your working copy:
$ svk switch //trunk Syncing //branches/vendors-with-fix(/branches/vendors-with-fix) in /Users/sally/vendors to 31. U myproj/foo.txt U myproj/bar.txt U myproj/baz.c U myproj/qux.c
It's not possible to switch part of your working copy to a branch. Currently SVK doesn't support mixed depot path working copies.