p4review script
Based on the python version availabe from the Perforce website.
This uses Tony Smith's Perforce Perl API.
Two major difference:
This script uses a configuration file. (I am still doing the pod
documentation for the creating the configuration file)
This script allows you to specify the fields of a job that should be
examined to determine which perforce users to email when a job is
created or modified as well as sends mail to a general review
request.
Everything else is pretty much the same. The daemon mode runs a bit
differently in order to make maintenance a bit easier. Instead of
doing a loop after a sleep the script actual "execs" another instance
of the script effectivly killing the current run and starting a whole
new run. The means that to stop the script you don't have to search
for a PID and do a kill command - you just setthe repeat value in the
config file to 0 and the next time the script runs it will exit after
completion. In addition, it allows you to do bug changes on teh fly
without having to stop the script and rerun it. This of course forces
Perl to be reread the script and "compile" it, but that price is well
worth the ease of operation this script gives you.
Todo:
Allow the user to specifiy the Subject Line Message in the config.
Change the config parsing. I did it pretty stupidly this time.