1

亲爱的,我正在使用 Perforce Windows x64 GUI 2014.1888424。根据我的测试,答案是否定的。它将使用分配的修订号。我发现“集成”和“分支”命令也不保留修订信息。这些命令是否设计为这样的行为?PS:我知道重命名/移动将保留修订信息。你能给我任何提示吗?非常感谢!

4

1 回答 1

1

你没有准确描述你做了什么测试,所以我稍微推测一下,但是:Perforce 集成、复制和合并命令确实保留了文件的整体修订历史。

然而,许多显示文件历史的命令默认不显示完整的历史;您必须指定其他命令来指示服务器跨集成输出历史记录。

例如,比较的输出

p4 filelog -i

相对

p4 filelog

或者

p4 changes -i

相对

p4 changes

为您的实验。

-i 标志告诉服务器您希望查看集成之前的文件历史记录或从其先前位置复制的文件。以下是“p4 help filelog”中的描述:

    The -i flag includes inherited file history. If a file was created by
    branching (using 'p4 integrate'), filelog lists the revisions of the
    file's ancestors up to the branch points that led to the specified
    revision.  File history inherited by renaming (using 'p4 move') is
    always displayed regardless of whether -i is specified.

请注意,正如您所观察到的,重命名的处理方式确实与 integ/copy/merge 不同。

至于我自己,当我研究文件的历史时,我倾向于几乎总是使用 P4V 工具及其极其强大的 Revision Graph 和 Time Lapse View 工具。这些工具知道如何浏览各种复杂的集成历史,并使研究文件的历史变得更加容易。

于 2015-01-14T02:17:30.910 回答