p4 sync -L 的路径应该如何格式化

How should be paths to p4 sync -L formatted

我正在尝试找出 p4 sync -L 的正确语法。当我尝试 p4 sync -L //one/of/my/files 时,它会抱怨未指定修订版,而如果我尝试 p4 sync -L //one/of/my/files@1234,它会抱怨 @# 是非法的。

嗯,documentation 说:

a list of valid file arguments in full depot syntax with a valid revision number

修订号为#1#17等。@语法用于引用标签名称、客户端名称或更改列表编号,它们是不是 修订号。

有关此的更多详细信息,请查看 [p4 help revisions][2];正如它所说,你想要:

`file#n  Revision specifier: The nth revision of file.`

因此,指定 //one/of/my/files#17,假设修订 17 是您要同步的文件的修订。

要查看文件的修订,请使用 p4 filelog //one/of/my/files