view tests/filtercr.py @ 17012:ea97744c4801

localrepo: convert _updatebranchcache from nodespace to revspace _updatebranchcache used to use revlog.reachable. After the switch to revlog.ancestors, we can now clean it up a bit and switch the algorithm from nodes to revs.
author Joshua Redstone <joshua.redstone@fb.com>
date Fri, 01 Jun 2012 08:56:17 -0700
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