view tests/filtercr.py @ 16443:9e02e032b522

fileset: add "subrepo" fileset symbol This new fileset symbol returns a list of subrepos whose paths match a given pattern. If the argument has no pattern type set, an exact match is performed. If no argument is passed, return a list of all subrepos.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Thu, 22 Mar 2012 21:12:15 +0100
parents 6cfe17c19ba2
children
line wrap: on
line source

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