How can I list P4 changes since a specific changelist

做~自己de王妃 提交于 2019-12-03 12:27:58

问题


Is there a way get the list of changelists after a particular changelist for a particular branch?

p4 changes (some flag ?) (CL#) //depot/project

回答1:


p4 changes "//depot/project/...@>nnn"

where nnn is your CL#.




回答2:


This can be done with the following syntax (assuming you want to see all the changes submitted to this branch since changelist 12345 inclusive):

p4 changes //depot/project/...@12345,#head



To successfully use Perforce it is crucial to understand the intricacies of the Perforce File Specifications or filespecs. Think of it as the query language of Perforce.

For example, if you want to do something with a branch between two points you would need a filespec similar to below:

  • //depot/branches/branch_name/...@12345,#head specifies a range between changelist 12345 and head/latest.

  • //depot/branches/branch_name/...@12345,23456 specifies a range between changelist 12345 and 23456.

  • //depot/branches/branch_name/...@2012/08/01,@2012/08/21 specifies a range between two dates.




回答3:


If you're into Perforce Integration, and you need to get the next CL to Integrate (the CL right after the last one you've integrated, say @12345), try this:

p4 changes "//depot/branches/branch_name/...@>12345" | tail -1 | cut -d ' ' -f 2


来源:https://stackoverflow.com/questions/12056940/how-can-i-list-p4-changes-since-a-specific-changelist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!