Detecting Perforce unopened modified files

前端 未结 5 1927
春和景丽
春和景丽 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:03

    This SO question gives a way to do this in the P4V GUI:

    In the Jan 2009 version of P4V, you can right-click on any folder in your workspace tree and click "reconcile offline work..."

    This will do a little processing then bring up a split-tree view of files that are not checked out but have differences from the depot version, or not checked in at all. There may even be a few other categories it brings up.

    You can right-click on files in this view and check them out, add them, or even revert them.

    Later EDIT:

    In the "Reconcile..." window, you can click 'Advanced Reconcile' and be presented with a two-pane, folder hierarchy diff window which is especially useful for finding files you need to add.

    PROS: This whole P4V feature is more user-friendly than the command-line version (because it allows utmost granularity in selecting what to reconcile)

    CONS: It is in dire need of a subversion/git/hg .ignore-like list, to spare you the pain of manually skipping all the dll's and other cruft in your projects.

提交回复
热议问题