Perforce - unhelve files to another directory

I have two directories in the same workspace, I put some files in the change list in the first directory, and now I want to not drive them into the second. I tried this command:

p4 -c my_workspace unshelve -s 17654070 -n -b //my_workspace/directory2
Branch '//my_workspace/directory2'
 unknown - use 'branch' command to create it.

How can i work?

+4
source share
1 answer

You will need to create a branch specification to tell the server about the relationship between the two directories.

  • run p4 branch some_branch_name
  • In the view field, put:

    //depot/directory1/... //depot/directory2/...

  • Save the form and run p4 -c my_workspace unshelve -s 17654070 -n -b some_branch_name

+5
source

All Articles