Mercurial > hg > CommitWatcher
view commitwatcher/poller.py @ 35:5406eb70f5bd
example
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 01 Nov 2013 09:23:46 -0700 |
parents | 630aaf102ce8 |
children |
line wrap: on
line source
""" poller/daemon-like service to continuously check the repo """ import time class CommitPoller(object): def __init__(self, fetcher, period=300): self.fetcher = fetcher self.period = period def poll(self): """poll""" def start(self): """poll forever""" while True: __call__ = start