强制服务器设置

发布于 2024-09-04 06:00:03 字数 154 浏览 3 评论 0原文

是否可以将 Perforce 服务器设置为默认情况下不让用户签出目录,而不是让每个人更新其视图规范以排除该目录?

例如:如果您想查看 //code/heavy/stuff 您必须将该目录显式添加到您的视图规范中,而不是在您的规范中添加 -//code/heavy/stuff 。

Is it possible to set the Perforce server to by default don't let the users check out a directory, instead of letting everybody update their view-spec to exclude that directory?

Eg: if you would like to check out //code/heavy/stuff you must explicitly add that directory to your view-spec instead of adding a -//code/heavy/stuff yo your spec.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

春花秋月 2024-09-11 06:00:03

您可以在服务器上安装触发器,为用户生成默认客户端规范。使用这个灵活的工具,您可以实现多种设计。这个想法是,当用户创建新的 clientspec 时,服务器会使用每个 depot 的默认 //depot/... 映射以外的内容填充它。

一个简单的想法是定义默认的 clientspec 以自动包含 -//code/heavy/stuff 映射。

另一个更高级的想法是检查用户属于哪些组,然后根据用户的组成员身份自动生成适合该用户的 clientspec。

You can install a trigger on the server that generates the default clientspec for a user. With this flexible tool, you can achieve a number of designs. The idea is that when a user creates a new clientspec, the server would fill it in with something other than the default //depot/... mapping for each depot.

One simple idea would be to define the default clientspec to include -//code/heavy/stuff mapping automatically.

Another more advanced idea would be to check to see what groups the user is a member of, and then auto-generate a clientspec appropriate for that user based on his group membership.

卸妝后依然美 2024-09-11 06:00:03

如果您只是想阻止人们获取它,那么可以使用权限映射。

但是,即使他们更改了客户端规范,他们也永远无法访问它。

也许您需要(重新)构建您的存储库,以便大部分用户的客户端规范中不包含大部分内容。

If you just want to block people from getting it, then it might be possible with permission mapping.

But then they would never by able to access it, even if they change their client spec.

Maybe you need to (re-)structure your repository so that the heavy part isn't in most users' client specs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文