--- a/poll-hgweb-queue.py Wed Aug 31 12:55:48 2016 +0800
+++ b/poll-hgweb-queue.py Thu Sep 01 17:30:18 2016 +0800
parsed = urlparse(target['url'])
if 'source' not in target:
target['source'] = parsed.hostname
+ if 'repo' not in target:
+ path = parsed.path.rstrip('/')
+ if path.endswith('/json-branches'):
+ path = path[:-14].rstrip('/')
+ target['repo'] = path.rpartition('/')[-1]
class CandolintPoller(Application):