Reputation: 51
I'm new to Perforce but I was able to successfully create a depot with a whole directory tree. Now I'm trying to add a file to one of the folders within that tree and I'm having trouble finding how to do that. I can see the file in the Workspace tab when I navigate through my computer but when I right-click the file there's no option to add it to a Pending Changelist. Appreciate any suggestions. Thanks.
Tony
Edit: I feel like I'm making hash of this thing. So I created a new workspace and located the folder containing the file I wanted to add. Then I right-clicked the file and selected "Mark for Add". Then I went to submit and got this error:
//depot/main/SSRS/1 SQL Code/Voucher Query.docx - warning: cannot submit from non-stream client No files to submit. Submit failed -- fix problems above then use 'p4 submit -c 5'.
Upvotes: 5
Views: 22829
Reputation: 1
In my case it just worked by logging off, killing the task in Task Manager and finally re-starting my Perforce.
Upvotes: 0
Reputation: 1136
Your depot is a stream depot (the icon should have "waves" in it...)
Set up a new depot, a "local" one, and use that one.
Upvotes: 0
Reputation: 21160
The previous answer shows how to add a file from the command line, but you were asking how to do it with P4V.
If you right click the file in your Workspace view you should see the option "Mark for Add". You can also use the toolbar button with a small red + sign, 4th from the left.
Upvotes: 2
Reputation: 1806
If the file is in the folder, run:
p4 add foldername/file
Then you can
p4 submit
Upvotes: 1