This is an old revision of the document!


E-mail messages to one or more addresses should be generated when a change is committed. Format of e-mail may change (e.g., doc committer committing to src tree)

The update hook allows for actions when a head is updated. This is typically used for commit mail. It is given the head name being updated, and the old and new sha1 hashes. This could be used to filter on the committed-by fields of the log that you can get from those 2 hashes, and the results used to note in the mail when a change is pushed that affects a repository other than what that committer has full access to.

However, this could get odd. Say some ports committer says “I've got this interesting set of code for src at the following refspec, someone want to review and maybe push it?” A src committer pulls that code down, reviews it, decides it's good, and pushes it. The author and committer information from the ports committer is retained in that history, so the update hook decides that it deserves annotation, but the push was by a full-rights src committer. We could probably filter on $USER vs. rights rather than committed-by vs. rights, but it's not clear to me which behavior would really be desired here.

  • versioncontrol/commitmail.1158634785.txt.gz
  • Last modified: 2006/09/19 02:59
  • by EricAnholt