Mercurial > hg > CommitWatcher
annotate commitwatcher/poller.py @ 42:cd590e1722d6
dup
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 05 Nov 2013 03:03:06 -0800 |
parents | 630aaf102ce8 |
children |
rev | line source |
---|---|
32 | 1 """ |
2 poller/daemon-like service to continuously check the repo | |
3 """ | |
4 | |
5 import time | |
6 | |
7 class CommitPoller(object): | |
8 | |
9 def __init__(self, fetcher, period=300): | |
10 self.fetcher = fetcher | |
11 self.period = period | |
12 | |
13 def poll(self): | |
14 """poll""" | |
15 | |
16 | |
17 def start(self): | |
18 """poll forever""" | |
19 while True: | |
20 | |
21 __call__ = start |