Mercurial > hg > CommitWatcher
annotate commitwatcher/poller.py @ 38:035368f84847
indent
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 04 Nov 2013 23:20:32 -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 |