Mercurial > hg > CommitWatcher
comparison commitwatcher/poller.py @ 32:630aaf102ce8
foo
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 13 Oct 2013 12:28:25 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
31:3edb91cfd3c1 | 32:630aaf102ce8 |
---|---|
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 |