|#2||7372||sven_erik_knop||Rollback Rename/move file(s). To folder "perforce" is needed.|
|#1||7370||sven_erik_knop||Rename/move file(s) again - this time to the right location inside a perforce directory.|
|#1||7367||sven_erik_knop||New locations for the Python triggers.|
|#5||7251||sven_erik_knop||Updated the comments|
|#4||7249||sven_erik_knop||A few name changes. Removed all references to PakRemover and changed the DEBUG message.|
|#3||7222||sven_erik_knop||Added some documentation to RevisionPurger.py|
- Renamed the main class to RevisionPurger
- Added the ability to keep more than one revisions
Added RevisionPurger.py, a tool to be used as a change-commit trigger that will remove files from the Perforce librarian. It is similar in use like the +S type, but handles branches gracefully.
The trigger takes the changelist as an argument , scans through the changelist and finds files that are eligible for delete:
- Must have a predecessor revision
- Must be of the right type, that is binary full or compressed file
- Must have no lazy copies, unless every lazy copy has a successor
- Must not be a lazy copy itself, but will follow lazy copies to the parent and apply above algorithm on that revision
If all conditions are met, the depot file is removed from the archive, replaced with an empty file and the digest for verify is adjusted.