tests/filtercr.py
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 22 Jun 2012 12:17:49 +0200
changeset 17056 30853f4bde2f
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
discovery: simplify branchmap construction against legacy server All necessary data to fire a simple revset query are already known. No call to ancestors are needed. Such ancestors calculation was already done to compute outgoing.missing.

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