# HG changeset patch # User Jeff Hammel # Date 1381692505 25200 # Node ID 630aaf102ce8c3366f245852a459afd7382ccf69 # Parent 3edb91cfd3c11b8230eaef681c0c3d22d7f01a84 foo diff -r 3edb91cfd3c1 -r 630aaf102ce8 commitwatcher/poller.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commitwatcher/poller.py Sun Oct 13 12:28:25 2013 -0700 @@ -0,0 +1,21 @@ +""" +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