Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

If you're just starting out with P4V, consider spending some time reading this: http://www.perforce.com/perforce/doc.current/manuals/p4v-gs/index.html and this: http://www.perforce.com/perforce/doc.current/manuals/intro/index.html

There are many more docs at the Perforce site, but these are a good place to start.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top