Jump to content


How to add a new project to a server? Currently single depot single project...


  • Please log in to reply
5 replies to this topic

#1 roberteker

roberteker

    Member

  • Members
  • PipPip
  • 12 posts

Posted 13 February 2019 - 12:16 PM

I really don't want to mess this up, so I thought I'd ask first.

Here's how my current Perforce setup looks:

Capture.PNG

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)...

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 727 posts

Posted 13 February 2019 - 05:24 PM

Run:

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.

#3 roberteker

roberteker

    Member

  • Members
  • PipPip
  • 12 posts

Posted 19 February 2019 - 02:32 PM

Thanks!

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?

#4 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 727 posts

Posted 19 February 2019 - 03:56 PM

You didn't create your new workspace pointing to the new depot.  Look at the client view.  If it says something like:'

//depot/... //myworkspace/...

change it to:

//mynewdepot/... //myworkspace/...

If it maps both depots:

Root: C:\p4
View:
   //depot/... //myworkspace/depot/...
   //mynewdepot/... //myworkspace/mynewdepot/...

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.

#5 roberteker

roberteker

    Member

  • Members
  • PipPip
  • 12 posts

Posted 20 February 2019 - 01:02 PM

Ok, I misunderstood that I had to right click and select "exclude tree" instead of just selecting which depot I wanted and click OK. Thank you for pointing that out to me.

Even so, now it says that there's no opened(?) files to add instead, in addition to the same warnings as before:

https://www.youtube....h?v=Rmo6I3cxY7A

EDIT: Not allowed to attach neither webm nor mp4 files in this forum. :(

#6 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 727 posts

Posted 20 February 2019 - 04:30 PM

This is the exact situation I described in my previous post.  Here's the text of your workspace definition, aka client spec (he said, with a long pause as he squinted at the blurry first frame... I can't wait until ML gets to the point where textual information can be automatically extracted from Youtube so I'll never again need to transcribe from a video like a medieval monk copying out manuscript pages)

Client: robert-z99-P42ml
Root: C:\Users\robert\Documents\Unreal Projects\P42MilitaryVR
View:
-//depot/... //robert-z99-P42ml/depot/...
//P42ml/... //robert-z99-p42ml/P42ml/...

So that means that the files for your "P42ml" project need to be in the local directory:

C:\Users\robert\Documents\Unreal Projects\P42MilitaryVR\P42ml

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:

//P42ml/... //robert-z99-p42ml/...

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