[p4] Changelist diff notifications

Marc Wensauer maillist.perforce.com at work.wnsr.net
Wed Jun 6 13:15:19 PDT 2007


I would like to implement functionality whereby a summary of a
changelist (including the files affected and the related diffs) is
generated and then sent to a group email address.

Typically, a number of developers belong to a group, and they have an
interest in a codeline and/or subset of the codeline's branches.  Their
group (in Active Directory) has an email address, and the changelist
diff report would be sent to that group email address.

So how can I accomplish this in Perforce?  Here are some of my ideas:

-Use the 'reviews' daemon, and have users individually add entries to
the Reviews: section for the areas of the depot that interest them.  I
don't like this very much, for it means that every user has to do this.

-Write a change-commit trigger to generate the report, but maintain a
list of what groups care about what depot paths separately.

-Somehow overload the group form to support an email and a reviews
field, and modify the reviews daemon (if possible) to allow groups to
receive changelist notifications.

Thoughts?  I'd appreciate any advice.  Thanks,
-Marc


More information about the perforce-user mailing list