Search code examples
perforceperforce-integrate

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?


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.