tests/filtercr.py
author Matt Mackall <mpm@selenic.com>
Wed, 07 Dec 2011 16:19:39 -0600
changeset 15614 260a6449d83a
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
bookmarks: mark divergent bookmarks with book@pathalias when source in [paths]

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