I am trying to do same operations that I do with perforce GUI using command line.
When I tried to do p4 edit
on any file, it said Client '<host-name>' unknown - use 'client' command to create it.
So, I tried p4 client -o <my-workspace-name> | p4 client -i
but this returned:
Error in client specification.
'ClientFilter' validation failed:
======================================================
client view is too loose !!!
each client should include one project only
======================================================
I have no experience of p4 tool. Please help me explain what it means with client view too loose !!!
This is a trigger that your admin has set up. Based on the error, I surmise that they want you to set up your client's View to only include one project (they want to keep you from syncing down the entire world when you set up your new client).
To create a new client, run:
and take a look at the form that pops up. The
View
field defines which part of the depot(s) your client will "see" and operate on. According to the error message, your admin wants you to restrict this to a single "project" -- I don't know what that means in this context (maybe it means just a single depot, or maybe a single folder in a particular depot?) so you might need to talk to your admin about it, or maybe browse around in the GUI and try to glean from context clues (i.e. names of directories) what that message is referring to.Just to use a made-up example, if you have a few different depots your default ("loose") View might look like:
and if you want to only map the project
//mumble/core
to your workspace root, you'd change that View to: