Mercurial > hg-stable
view tests/filtercr.py @ 13480:69418d4525d1 stable
convert/svn: abort operation when python bindings are not available
Subversion python bindings check was not present in svn_sink source
class which made it fail while using svn as destination repository.
Added a more maintainble svn bindings check for svn_source and svn_sink
classes.
author | Azhagu Selvan SP <tamizhgeek@gmail.com> |
---|---|
date | Thu, 24 Feb 2011 01:14:15 +0530 |
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