buildbot/buildbot — pull request #441 by Jc2k (2012-06-02 23:48:27+00:00)
Title: Add a web hook that can trigger named pollers

A while ago @djmitche and I discussed the possibility of having pollers only poll once at start up then having a change hook poke them rather than periodic polling. This patch is a first attempt at such a thing.

The general use case is that the pollers (at least in the SVN and Git cases) can remember the last revision they polled even after a buildbot restart so wont miss commits that happened during downtime, maintenance windows, etc but will also be nearly as quick to pick up changes as a change hook.

In my case, my staging instance is behind NAT. This patch lets me use the same change source configuration in prod and stage, but prod can be poked on commit and stage falls back gracefully to polling.

I've implemented this as a change_hook. I fear it only barely fits. But i didn't want to add another entry point.