【问题标题】:Integrating multiple changelists on perforce在 perforce 上集成多个变更列表
【发布时间】:2013-07-10 03:29:18
【问题描述】:

我有一个要从主干合并到分支的更改列表列表。

有没有办法在 perforce 中自动集成多个变更列表?

【问题讨论】:

    标签: version-control perforce perforce-branch-spec


    【解决方案1】:

    您可以通过以下方式集成单个更改:

    p4 integrate //depot/source/...@CLN1,CLN1 //depot/destination/...
    

    然后您可以在提交之前集成其他更改:

    p4 integrate //depot/source/...@CLN2,CLN2 //depot/destination/...
    p4 integrate //depot/source/...@CLN3,CLN3 //depot/destination/...
    

    编写一个循环遍历更改编号列表并为每个更改编号执行适当的p4 integrate 命令的脚本应该很容易。

    【讨论】:

    • 那个语法对我来说失败了。今天正确的做法是使用后缀@=1000。见stackoverflow.com/a/12149115/418362
    • @Artfunkel 据我所知,这仍然是正确的方法。我不知道为什么这种语法对你来说会失败。 (你得到了什么错误?)p4 help revisions 仍然描述使用逗号(否则你会如何指定 range?),@= 语法通常指的是搁置的变更集。 (FWIW,我使用的是 p4 2004.1。)
    • 啊,我用的是#而不是@。大概就是这个原因吧!
    猜你喜欢
    • 1970-01-01
    • 2012-02-15
    • 1970-01-01
    • 2012-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多