Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add new folder to depot in P4V client

I want to create a private branch folder in a depot using perforce visual client. Can somebody tell me how to do it? I looked up on Google but there is so little help for a P4V user.

Restating the question:

I have created a local directory: c:/depot/abc/myfile.txt. My p4v is mapped with the central repository as //depot... c:/depot/...

How do I submit abc/myfile.txt to the repository?

like image 710
Anand Avatar asked Nov 22 '11 11:11

Anand


2 Answers

After reading your question, it sounds like you don't have any files in your depot yet? If that's the case, then you just need to add the files to your depot, not integrate. Here's how to do that:

  1. In the edit workspace dialog, set the root to c:/depot
  2. Then, change your workspace mapping to //depot/... //<workspace-name>/... as leaving the slash off as it is in your question can cause problems.
  3. In the P4V workspace view, find the file that you want to add to the depot.
  4. Right click that file, and select "Mark for add..." which will add it to a pending changelist.
  5. Repeat step 3 for all the files that you want added (you can also multi-select files and then mark them for add).
  6. Once you've got everything marked for add in a pending changelist, right click that changelist and pick "Submit" to commit the files to the depot.
like image 179
Mike O'Connor Avatar answered Nov 14 '22 12:11

Mike O'Connor


Right click on the branch you want to branch from, and select Integrate(if it's 2011.1 you would select "Merge/Integrate") Then in the box that pops up, type in the target.

Note that you must have submit permissions in order to create the branch in the new location. So

//depot1/main/... //depot2/sandbox/...

If you have submit permissions to //depot1 but not to //depot2 you wont' be able to branch from //depot1 to //depot2, but you can branch from //depot1/main/... to //depot1/sandbox/... as long as you have permissions for all of //depot1

like image 34
aflat Avatar answered Nov 14 '22 12:11

aflat