Perforce scripts to fill in features lacking from client or command line.
Go to file
Brian e2d660e486 Updated readme, added warning, also figured out I'm not parsing p4ignore correctly. 2014-05-08 15:44:26 -06:00
README.md Updated readme, added warning, also figured out I'm not parsing p4ignore correctly. 2014-05-08 15:44:26 -06:00
p4RemoveUnversioned.py Added the basic script. 2014-05-08 15:37:57 -06:00

README.md

p4RemoveUnversioned

Removes unversioned files from perforce repository. Script is in beta, and needs to undergo a partial re-write for super speed improvements. Right now doing individual p4 fstat calls, when it should be done on an entire directory.

This script does parse .p4ignore ignore files, compiles the fields as regex, and scans every directory and file against the local and parent .p4ignore files. This is my first time doing something like this, and I just realized this isn't actually correct; I need to update how things are ignored to follow the spec, since it's not straight up regex.

Files are currently permanently deleted, so use this at your own risk.