[Perforce] P4PORT = ssl:localhost:20101 P4USER = review P4PASSWD = Reviewpass [Mail] administrator = sknop mailhost = zimbra.perforce.co.uk [Logging] logger = reviewlogger.cfg [Review] # Set to 1 to repeat every <sleeptime> seconds. # Set to 0 to run just once - do this if running from cron. repeat = 0 # Number of seconds to sleep between invocations # Irrelevant if <repeat>, above, is 0. sleeptime = 60 # Don't send more than this many emails of # each type (job and change) at a time. This is # a safety feature that prevents runaway email. limit_emails = 10 # Threshold for the number of characters permitted in a changelist # and job descriptions. Changelist or Job descriptions greater than # this value will be trunctated with a message. limit_description = 5000 # Set <notify_changes> to 0 to disable change notification completely. # Set <notify_jobs> to 0 to disable job notification completely. # (Note that at least ONE of these should be set to true: otherwise # there's no reason to ever run this program!) notify_changes = 1 notify_jobs = 1 # Set to 1 to Bcc: ALL email to the administrator bcc_admin = 0 # Set to 1 to CC: email to the original author of the changelist or job send_to_author = 0 # Set to 1 to set the emails Reply-To: field to the administrator reply_to_admin = 0 # If value is None, the script will look up the email # address for each Perforce user in the "p4 user" # data via "p4 user -o <username>". If, instead, # you set this variable <maildomain> to any domain # (like "yourcompany.com") then the review daemon # will assume that Perforce user <username> has # the email address <username>@<maildomain>. maildomain = None # The email address FROM which to send complaints to # the adminstrator from the "complain" function. complain_from = 'PerforceReviewDaemon@localhost' # Send job review mail to users reviewing <jobpath>. # See "p4 help user" for more information. jobpath = '//depot/jobs' # A job field used to determine which jobs users are notified # of changes to. When the review daemon runs, subscribing users are # notified of any jobs with a higher value in this field then the # value in the "jobreview" counter -- and when job notification is # completed, the "jobreview' counter is updated accordingly. # # This field needs to appear in your jobspec as a "date" field # with persistence "always". See "p4 help jobspec" for more # information. datefield = 'Date'
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8176 | Sven Erik Knop |
Basic framework for P4Review using P4Python and Python 3 Called P4PyReview, it is designed to replace the existing review daemon for those customers who want to extend the existing review daemon or who want to keep the configuration file separate from the actual code. It can't do much at the moment except for initiating the logging facility, connect to the Perforce Server and log the review user in, but from here on it should be smooth sailing :-) |