p4diff和p4diff2之间的区别

时间:2012-06-25 08:15:26

标签: diff perforce

P4 diff和P4 diff2有什么区别?

1 个答案:

答案 0 :(得分:6)

p4 diff用于客户端,例如将本地修改的文件与软件仓库上的版本进行比较。 p4 diff2用于比较服务器上的两个文件

从手册:

$ p4 help diff

On the client machine, diff a client file against the corresponding
revision in the depot. The file is compared only if the file is
opened for edit or a revision is provided. See 'p4 help revisions'
for details about specifying revisions.

$ p4 help diff2

'p4 diff2' runs on the server to compare one set of depot files (the
'source') to another (the 'target').  Source and target file sets
can be specified on the 'p4 diff2' command line or through a branch
view.