The p4v Perforce GUI client has an 'Actions > Remove from Workspace' menu command which removes all files from the workspace that are under version control and were not opened for edit or delete.
This functionality only seems to be available from the GUI client, I can't find any corresponding command in the ever growing list shown by p4 help commands
.
I thought of using p4 where
, p4 files
and some list filtering, but that doesn't seem trivial, so before I go about creating a script, does anyone have a better idea ?