Detecting Perforce unopened modified files

前端 未结 5 2007
春和景丽
春和景丽 2021-01-30 17:54

I\'m trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. p4 fstat returns a value headModT

5条回答
  •  滥情空心
    2021-01-30 18:07

    As of Perforce version 2012.1, use the command line commands p4 status and p4 reconcile

    http://www.perforce.com/perforce/r12.2/manuals/cmdref/status.html

    The p4 status command finds unopened files in a client's workspace and detects the following three types of inconsistencies between your workspace and the depot:

    1. Files present in the depot, present in your have list, but missing from your workspace. By default, these files are then opened for delete.
    2. Files present in your workspace, but missing on the depot. By default, these files are opened for add.
    3. Files modified in your workspace that are not open for edit. By default, these files are opened for edit.

    http://www.perforce.com/perforce/r12.1/manuals/cmdref/reconcile.html

提交回复
热议问题