Perforce Utilities


Here are some scripts which I've written in the hope they will be useful to others. You them at your own risk.

Miscellaneous Utilities

Back to Table of Contents

p4abuse.pl p4abuse.pl is a small perl script designed to help a system administrator detect abuses of a Perforce system. Currently, it will highlight two common errors: using a client from multiple hosts, and use of a client by multiple users.
rename_depot.pl rename_depot.pl allows a sysadmin to rename a Perforce depot whilst preserving the entire history of the depot. It does this by editing a checkpoint file, so the user must checkpoint their database first, and then recover from the edited checkpoint at the end. ALWAYS ensure that appropriate backups are taken before using this script.
specsaver.rb specsaver.rb versions all client/label/branch specs along with global data like typemaps, protections and jobspec. It requires a working build of P4Ruby from //guest/tony_smith/perforce/API/Ruby/... in order to work, but is much more efficient as a result.