tests/filtercr.py
author Idan Kamara <idankk86@gmail.com>
Mon, 25 Jul 2011 22:19:28 +0300
changeset 14939 b4c06b97dfe0
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
cmdserver: repo.invalidate() on every runcommand This will trigger the filecache and recreate every cached property that was changed by something other than this cmdserver instance (e.g. by running 'hg commit' at the cmdline).

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