tests/filtercr.py
author Mads Kiilerich <mads@kiilerich.com>
Wed, 16 Feb 2011 03:28:22 +0100
changeset 13418 28555e294104
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
tests: update ssl requirement for test-https.t hgweb requires OpenSSL for serving https.

#!/usr/bin/env python

# Filter output by the progress extension to make it readable in tests

import sys, re

for line in sys.stdin:
    line = re.sub(r'\r+[^\n]', lambda m: '\n' + m.group()[-1:], line)
    sys.stdout.write(line)
print