perforce - 使用与 head 不同的修订版填充任务流

标签 perforce

我正在尝试使用比 #head 更旧的版本填充任务流。

所以我创建了一个任务流,并且没有选择自动分支任何文件。

然后我尝试:

>p4 populate -r -S //depot/dev //depot/main/...@some_label_vXXXX
Label 'some_label_vXXXX' is restricted to use on server 'Edge', not on server 'MASTER'.

我已连接到边缘服务器,因此我不太确定那里出了什么问题。如果我需要一个全局标签才能分支,有没有办法将现有的本地标签转换为全局标签?

无论如何,我尝试使用更改列表。

>p4 populate -r -S //depot/dev //depot/main/...@1456175
//depot/main/...@1456175 - no target file(s) in branch view.

那里会发生什么?这是 FromFile 的问题吗?使用现有标签/更改列表填充任务流的正确方法是什么?

使用 P4V,似乎执行的命令是(并且这有效):

>p4 populate -o //depot/main/...@1456175 //depot/dev/...

我仍然有兴趣了解为什么“-rS”不起作用。

最佳答案

在此语法中:

p4 populate -r -S //depot/dev //depot/main/...@1456175

//depot/main/... 正在限制 toFile,这不是您想要的。这应该有效:

p4 populate -r -S //depot/dev @1456175

指定流名称已生成 fromFile->toFile View ,因此无需再次指定其中任何一个。

关于perforce - 使用与 head 不同的修订版填充任务流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32987821/

相关文章:

windows - 结合 p4describe 和 p4changes 命令以获得所需的结果

python - 使用 Perforce 触发器拒绝带有 Windows 行结尾的文件

triggers - 有什么方法或解决方法可以强制客户端触发吗?

c# - 从 p4 路径中提取文件名的正则表达式

perforce - 如何在 Eclipse 3.8 中安装 Perforce 插件

Git 差异到 Perforce?

git - 相当于 perforce 中 Git 的 "amend last commit"

perforce - 强制重新应用变更列表

perforce - 在Perforce中,如何查找具有特定文件类型+属性的文件?

version-control - Perforce(版本控制)- 自特定修订版以来的文件更改列表