Download:
child 200:51b38a0bdcea
parent 198:de8211272206
199:3d3300a1af40
Anton Shestakov <av6@dwimlabs.net>, Fri, 05 Aug 2016 12:46:39 +0800
queue: flip condition so that it's not so "backwards"

1 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
poll-hgweb-queue.py file | annotate | diff | comparison | revisions
--- a/poll-hgweb-queue.py Fri Aug 05 12:45:49 2016 +0800
+++ b/poll-hgweb-queue.py Fri Aug 05 12:46:39 2016 +0800
@@ -62,11 +62,11 @@
logging.info('Got %d current hash(es) from %s', len(hashes), url)
target['hashes'] = hashes
target['etag'] = response.headers.get('ETag', None)
- elif response.code != 304:
+ elif response.code == 304:
+ logging.debug('Not modified: %s', url)
+ else:
logging.error('Error %d fetching %s', response.code, url)
response.rethrow()
- else:
- logging.debug('Not modified: %s', url)
def push(self, base, changes):
for change in changes: