Determining the last changelist synced to in Perforce

后端 未结 10 1764
执念已碎
执念已碎 2021-01-29 18:35

A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the c

10条回答
  •  醉话见心
    2021-01-29 19:18

    You could also use the cstat command:

    p4 help cstat

    cstat -- Dump change/sync status for current client
    
    p4 cstat [files...]
    
    Lists changes that are needed, had or partially synced in the current
    client. The output is returned in tagged format, similar to the fstat
    command.
    
    The fields that cstat displays are:
    
        change   changelist number
        status   'have', 'need' or 'partial'
    

提交回复
热议问题