--- a/poll-hgweb-queue.py Wed Aug 31 12:25:36 2016 +0800
+++ b/poll-hgweb-queue.py Wed Aug 31 12:55:48 2016 +0800
from argparse import ArgumentParser, FileType, SUPPRESS
+from urlparse import urlparse
from candolint.utils import lookup_option, timestamp
+def fill_blanks(target):
+ parsed = urlparse(target['url'])
+ if 'source' not in target:
+ target['source'] = parsed.hostname
class CandolintPoller(Application):
def __init__(self, rconn, targets, interval, debug):
for target in self.targets: