Perforce scripts to fill in features lacking from client or command line.
Go to file
Brian 2bb0fa671d Fixed a bug from old code so the script would work, tweaked output.
I was trying to use `p4 have` for speed, but it doesn't seem to work
with files that are added to a changelist but not to a repo.  So I had
to resort back to `p4 fstat`.
2014-05-08 19:05:07 -06:00
README.md Update README.md 2014-05-08 15:52:08 -06:00
p4RemoveUnversioned.py Fixed a bug from old code so the script would work, tweaked output. 2014-05-08 19:05:07 -06:00

README.md

p4RemoveUnversioned

Removes unversioned files from perforce repository. Script is in beta, though it works. It 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.