'ClientFilter' validation failed: client view is too loose . each client should include one project only

流过昼夜 提交于 2019-12-11 03:42:27

问题


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 !!!


回答1:


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:

p4 set P4CLIENT=your_workspace_name
p4 client

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:

//depot_one/... //your_workspace_name/depot_one/...
//mumble/... //your_workspace_name/mumble/...
//widgets/... //your_workspace_name/widgets/...

and if you want to only map the project //mumble/core to your workspace root, you'd change that View to:

//mumble/core/... //your_workspace_name/...


来源:https://stackoverflow.com/questions/53680860/clientfilter-validation-failed-client-view-is-too-loose-each-client-should

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!