Mercurial > hg > CommitWatcher
annotate commitwatcher/poller.py @ 44:4f8fe143b977
whitespace
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 06 Nov 2013 23:08:20 -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 |