How can I list P4 changes since a specific changelist

后端 未结 3 580
清歌不尽
清歌不尽 2021-02-05 10:48

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

p4 changes (some flag ?) (CL#) //depot/project
3条回答
  •  粉色の甜心
    2021-02-05 11:09

    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.

提交回复
热议问题