tests/filtercr.py
author Bryan O'Sullivan <bryano@fb.com>
Fri, 01 Jun 2012 12:45:16 -0700
changeset 16867 1093ad1e8903
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
revlog: descendants(*revs) becomes descendants(revs) (API) Once again making the API more rational, as with ancestors.

#!/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