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
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:
- Files present in the depot, present in your have list, but missing from your workspace. By default, these files are then opened for delete.
- Files present in your workspace, but missing on the depot. By default, these files are opened for add.
- 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