Split scripts up for now, may add all in one scripts later. Added

p4SyncMissingFiles.py, so you don't have to do a force sync and redownload
everything.
This commit is contained in:
unknown 2015-02-18 15:09:57 -07:00
parent 9d4d26250d
commit 1d1d7f8cae
5 changed files with 648 additions and 476 deletions

View file

@ -1,4 +1,4 @@
p4RemoveUnversioned
p4Tools
===================
Removes unversioned files from perforce repository. Script is in beta, works well, but still going through continued testing. There are a few stats at the end, will be putting in more, like number of files/directories checked, so you have an idea how much work was required.
@ -6,6 +6,6 @@ Removes unversioned files from perforce repository. Script is in beta, works wel
Concerning benchmarks: I used to have a HDD, now a SSD. So I can't provide valid comparisons to the old numbers until I do them on a computer with a HDD. That said, this single worker implementation runs faster than the old multi-threaded version. Can't wait to further update it, will only continue to get faster.
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](http://www.perforce.com/perforce/r12.1/manuals/cmdref/env.P4IGNORE.html), since it's not straight up regex.
~~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](http://www.perforce.com/perforce/r12.1/manuals/cmdref/env.P4IGNORE.html), since it's not straight up regex.~~ I need to re-add this to the newer script.
**Files are currently permanently deleted, so use this at your own risk.**