在没有客户端工作区的情况下从 perforce 仓库下载文件?
有没有一种方法可以在不使用客户端工作区的情况下从 perforce 仓库下载文件?我知道:
p4 print -o local.file //perforce_depot/remote.file
但这仅在请求的文件位于客户端工作空间下时才有效。我正在寻找仅依赖于用户及其权限但不依赖于工作空间的东西...
谢谢!
Is there a way to download a file from a perforce depot without using a client workspace? I know about:
p4 print -o local.file //perforce_depot/remote.file
but this does only work if the requested file is under the clients workspace. I'm looking for something that is only dependent on the user and his rights but not on a workspace...
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只要用户有权访问该文件并且该文件实际存在,您的命令就可以在没有客户端工作区的情况下运行。
Your command will work without a client workspace, as long as the user has permission to access the file, and the file actually exists.
在你的perforce服务器上运行p4web,然后你可以使用wget来获取任何文件。
我的构建服务器获取了它们的初始启动构建脚本,这避免了先有鸡还是先有蛋的问题,即您需要一些东西来启动构建,但您希望该东西是强制性的。现在唯一不强制的是 2 行。一个 wget 和一个 exec。
Run p4web on your perforce server, and then you can use wget to get any file.
I have my build servers wget their initial kickoff build scripts, that avoids the chicken/egg problem of you need something to kick a build, but you want that something to be in perforce. The only thing not in perforce now is a 2 lines. A wget, and an exec.