How to add a new project to a server? Currently single depot single project...
Posted 13 February 2019 - 12:16 PM
Here's how my current Perforce setup looks:
Now I wish to add a project to the same server, without disturbing the existing depot/workspaces.
What's the exact procedure to do this?
I also suspect the current project is just named "depot" instead of its proper project name (that is only visible in the individual workspaces, it seems)...
Posted 13 February 2019 - 05:24 PM
p4 depot NEWPROJECTNAME
That will make a new depot ("project?") called NEWDEPOTNAME.
There isn't a concept of a "project" as such in Perforce; a project is just a set of files, and you might choose to group the files in a project in a top level folder within one depot, a subfolder (with the parent folder representing some other level of organization, like a codeline), depots within a repository, or you might even give each project its own repository (so that it has its own change numbers and can be completely isolated from other projects). In your case it sounds like each project corresponds to a depot, though, so you just want to run "p4 depot" to make a new one.
Posted 19 February 2019 - 02:32 PM
Turns out my old project was named "depot" on the server, now that I have two.
Anyway, now that I've done that, and created a new workspace pointing to the existing project that I want to add, I get "file(s) not in client view" whenever I try to add files.
Why is that?
Posted 19 February 2019 - 03:56 PM
change it to:
If it maps both depots:
then the new depot is mapped to a folder under the root (in this case C:\p4\mynewdepot). Either move your project files to the folder that corresponds to the place you want to add them, or change the View so that it maps the depot to the location where those files already are.
Posted 20 February 2019 - 01:02 PM
Even so, now it says that there's no opened(?) files to add instead, in addition to the same warnings as before:
EDIT: Not allowed to attach neither webm nor mp4 files in this forum.
Posted 20 February 2019 - 04:30 PM
Root: C:\Users\robert\Documents\Unreal Projects\P42MilitaryVR
So that means that the files for your "P42ml" project need to be in the local directory:
I got this by looking at your View; the first part of the right side of the mapping (//robert-z99-p42ml/) corresponds to your Root, and there's a "P42ml" directory underneath that which is what maps to the //P42ml depot.. I can also see in P4V's "workspace view" that all of your files are one level higher in the folder hierarchy, so none of them are mapped into your new depot.
I have no idea how to use P4V's client view editor to actually edit the client view, so just open a command prompt, run "p4 client", and change the View to:
Now you'll be able to add everything under your client root and it will go into your P42ml depot.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users