How to fix Perforce error “Can’t clobber writable file” or Perforce Error Message – Can’t Clobber Writable File

The “can’t clobber writable file” error happens because Perforce is very cautious about accidentally overwriting (“clobbering”) work that you’ve done in your workspace. The normal Perforce workflow is to p4 sync a file (which puts it into your workspace as read-only) and then to p4 edit it if you want to modify it (this makes … Read more

Can you “ignore” a directory in P4V?

As of version 2012.1, Perforce supports the P4IGNORE environment variable. This allows you to specify files and directories to ignore when using the commands that search for or add new files (p4 add, p4 status, and p4 reconcile). To use an ignore file, create a file in the root of your workspace and give it … Read more

How to view Shelved P4 Changes?

p4 describe -S 1234 should to the trick, see the documentation on describe. To see the file content you would unshelve the files into your workspace (assuming you have a workspace for the same project your colleague is working on). Create a new (empty) changelist with p4 change (results in e.g. 2345), then use p4 … Read more