Subscriptions
From P4Spam
Overview
Subscriptions, augment the standard user reviews mechanism for change notifications by allowing a flexible regular-expression to email address mapping which is not bound to a user specification.
NOTE: The expressions used for SUBSCRIPTIONS are regular expressions (Python variety) NOT Perforce views.
To enable subscriptions, make sure that SUBSCRIPTIONS_ENABLED is set to True and then setup at least one mapping.
When a change is detected, the subscriptions will be matched against the affected files. If an expression matches, then the target email address (or addresses) will be added to the notification recipient list.
Examples
For example to email the myproject@mycompany.com list whenever a change is made that includes //depot/myproject/...
SUBSCRIPTIONS = {
"//depot/myproject/.*": ("myproject@mycompany.com"),
}
Or lets say you want to notify the qa@mycompany.com and qa-manager@mycompany.com whenever something to //depot/qatests/... changes
SUBSCRIPTIONS = {
"//depot/qatests/.*": ("qa@mycompany.com", "qa-manager@mycompany.com"),
}
