'ClientFilter' 验证失败:客户端视图太松散.每个客户只能包含一个项目 [英] 'ClientFilter' validation failed: client view is too loose . each client should include one project only

查看:44
本文介绍了'ClientFilter' 验证失败:客户端视图太松散.每个客户只能包含一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用命令行执行与 perforce GUI 相同的操作.

I am trying to do same operations that I do with perforce GUI using command line.

当我尝试对任何文件进行 p4 edit 时,它显示 Client ''未知 - 使用客户端"命令创建它.

When I tried to do p4 edit on any file, it said Client '<host-name>' unknown - use 'client' command to create it.

所以,我尝试了 p4 client -o <my-workspace-name>|p4 client -i 但这返回了:

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

我没有使用 p4 工具的经验.请帮我解释一下客户端视图太松意味着什么!!!

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:

p4 set P4CLIENT=your_workspace_name
p4 client

然后看一下弹出的表格.View 字段定义了您的客户将看到"和操作软件仓库的哪一部分.根据错误消息,您的管理员希望您将其限制为单个项目"——我不知道在这种情况下这意味着什么(可能只是一个仓库,或者特定仓库中的单个文件夹?) 所以您可能需要与您的管理员讨论它,或者可能在 GUI 中浏览并尝试从上下文线索(即目录名称)中收集该消息所指的内容.

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

如果您只想将项目 //mumble/core 映射到您的工作区根目录,您可以将该视图更改为:

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

这篇关于'ClientFilter' 验证失败:客户端视图太松散.每个客户只能包含一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆