我正在尝试使用 p4 fstat 命令检索文件上次提交到软件仓库的更改 ID。这是输出:
p4 fstat File.cs
... depotFile //csharpDepot/src/File.cs
... clientFile C:/space/codereviewtests/perforce/csharpWorkspace\src\File.cs
... haveRev 4
... action edit
... change default
... type text
... actionOwner user1
... ... otherOpen0 user1@mystorage
... ... otherAction0 edit
... ... otherChange0 default
... ... otherOpen 1
我可以在 p4v 中看到更改列表历史记录,文件没有问题。p4 fstat 命令未列出 headChange 的原因可能是什么?
这是来自的输出p4 filelog File.cs
//csharpDepot/src/File.cs
... #5 change 59 edit on 2013/03/22 by user1@csharpWorkSpace (text) 'dd '
... #4 change 57 edit on 2013/03/17 by user1@csharpWorkSpace (text) 'second'
... #3 change 56 edit on 2013/03/17 by user1@csharpWorkSpace (text) 'commit '
... #2 change 54 edit on 2013/03/17 by user1@csharpWorkSpace (text) 'commit changes '
... #1 change 53 add on 2013/03/17 by user1@csharpWorkSpace (text) 'initial commit '
这里的另一个问题是 p4 print 告诉我 File.cs - 没有这样的文件。这很糟糕,因为我需要下载最后提交的修订内容。谢谢!