perforce(p4)相关问题

P4下查看workspace中文件集合所对应的最高changelist:

方法一:

p4 changes -m1 //...#have

注意:是三个点,不是两个点。

方法二:

p4 changes -m1 //...@<workspace name>

因为如下的depot语法是等价的:

//<workspace name>/...
//...@<workspace name>
//...#have

p4 changes的用法:

p4 changes -m 5 //depot/project/...

Show the last five submitted, pending, or shelved changelists that include any file under the project directory.

p4 changes -m 5 -c eds_elm

Show the last five submitted, pending, or shelved changelists from client workspace eds_elm.

p4 changes -m 5 -s submitted -u edk

Show the last five submitted changelists from user edk.

p4 changes file.c@2010/05/01,2010/06/01

Show any changelists that include file file.c, as mapped to the depot through the client view, during the month of May 2010.

p4 changes -m 1 -s submitted

Output a single line showing the changelist number of the last submitted changelist.

p4 changes @2011/04/01,@now

Display all changelists submitted from April 1, 2011 to the present.

p4 changes @2011/04/01

Display all changelists submitted before April 1, 2011.


p4 changes ... 

查看当前目录下的changes。


p4 删除client

p4 client -d client_name


p4 修改client的mapping 关系

p4 client


p4 opened

显示pending的文件


p4 revert

p4 revert //...

Revert every file you have open, in every one of your pending changelists, to its pre-opened state.

p4 revert -c default //...

Revert every file open in the default changelist to its pre-opened state.

p4 revert -n *.txt

Preview a reversion of all open .txt files in the current directory, but don't actually perform the revert.

p4 revert -c 31 *.txt

Revert all .txt files in the current directory that were open in changelist 31.

p4 revert -a

Revert all unchanged files. This command is often used before submitting a changelist.



参考资料:perforce官网

你可能感兴趣的:(perforce(p4)相关问题)