创建流仓库的强制权限?

发布于 2024-12-28 13:03:18 字数 1158 浏览 2 评论 0原文

是否可以让我的用户创建 Perforce stream 仓库,而无需在任何地方授予他们超级 访问权限?

我刚刚升级到 Perforce Server 2011.1,我渴望使用新的 功能。

如果我理解正确的话,流有几个限制:1)流必须位于特殊的仓库中,2)流仓库在其顶层包含分支。

我们目前有一个本地仓库(称为“mylocaldepot”),其中包含多个项目。考虑到上述限制并与 Perforce 文档中显示的实践保持一致,“每个项目一个流仓库”似乎更明智。但创建仓库需要超级访问权限。如果我们的用户能够自己为自己的项目自由创建流仓库,那就更方便了。但我不想让每个人在任何地方都拥有不受限制的超级访问权限。我不希望他们意外删除我们现有的本地仓库。

是否可以设置 Perforce 权限,使得用户只能被授予创建仓库的能力?也许我可以使用 p4 protected 和像这样的权限设置的某种组合?

write user * * //...
super user * * //*
super user * * -//mylocaldepot

顺便说一句:我发现有关流的最佳信息是这两个视频: 流简介代码行管理流;以及本文档:Perforce Streams 采用指南

Is it possible to enable my users to create Perforce stream depots without giving them super access everywhere?

I just upgraded to Perforce Server 2011.1 and I am eager to use the new streams feature.

If I understand correctly, streams have a couple restrictions: 1) streams must be in special stream depots and 2) stream depots contain branches at their top-level.

We currently have a single local depot (called "mylocaldepot") which contains multiple projects. Given the above restrictions and in keeping with the practices shown in Perforce documentation, it would seem that "one stream depot per project" is more sensible. But creating depots requires super access. It would be more convenient if our users could freely create stream depots for their projects themselves. But I don't want to give everyone unrestricted super access everywhere. And I don't want them to accidentally delete our existing local depot.

Is it possible to setup Perforce permissions in such a way that users can be granted only the ability to create stream depots? Perhaps I could use p4 protect and some combination of permission settings like this?

write user * * //...
super user * * //*
super user * * -//mylocaldepot

BTW: I've found the best information on streams to be these two videos: Introduction to Streams and Streams for Codeline Management; and this document: Perforce Streams Adoption Guide

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

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

发布评论

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

评论(2

江挽川 2025-01-04 13:03:18

超级用户必须创建该仓库,但普通用户可以在该仓库中创建流。您绝对不应该向所有用户授予超级权限,并且您不应该需要多个(或者,也许几个)流仓库。

The super user must create the depot, but ordinary users can then create streams in that depot. You should definitely not give all your users super permission, and you should not need more than one (or, perhaps, a few) stream depot.

盗琴音 2025-01-04 13:03:18

您还可以考虑使用 Perforce Broker 来提供项目创建命令。代理可以在幕后执行必要的步骤来创建新的流仓库,同时不向用户授予超级访问权限。 (当然,经纪人需要能够使用超级账户,但这对用户是隐藏的。)

You could also look into using the Perforce Broker to provide a project creation command. The broker can, behind the scenes, do the necessary steps to create a new stream depot, while not granting super access to the users. (The broker would need to be able to use a super account, of course, but that would be hidden from the users.)

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