Mercurial > hg > CommitWatcher
annotate commitwatcher/poller.py @ 45:32cf3d3469c3 default tip
assert
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 07 Nov 2013 14:19: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 |