diff --git a/tests/filtertmp.py b/tests/filtertmp.py deleted file mode 100755 --- a/tests/filtertmp.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python -# -# This used to be a simple sed call like: -# -# $ sed "s:$HGTMP:*HGTMP*:" -# -# But $HGTMP has ':' under Windows which breaks the sed call. -# -import sys, os - -input = sys.stdin.read() -input = input.replace(os.sep, '/') -hgtmp = os.environ['HGTMP'].replace(os.sep, '/') -input = input.replace(hgtmp, '$HGTMP') -sys.stdout.write(input) diff --git a/tests/helpers.sh b/tests/helpers.sh deleted file mode 100644 --- a/tests/helpers.sh +++ /dev/null @@ -1,17 +0,0 @@ -#/bin/sh - -hideport() { sed "s/localhost:$HGPORT/localhost:\$HGPORT/"; } - -repr() { python -c "import sys; print repr(sys.stdin.read()).replace('\\n', '\n')"; } - -hidehex() { python -c 'import sys, re; print re.replace("\b[0-9A-Fa-f]{12,40}", "X" * 12)'; } - -hidetmp() { sed "s/$HGTMP/\$HGTMP/"; } - -hidebackup() { sed 's/\(saved backup bundle to \).*/\1/'; } - -cleanrebase() { - sed -e 's/\(Rebase status stored to\).*/\1/' \ - -e 's/\(Rebase status restored from\).*/\1/' \ - -e 's/\(saved backup bundle to \).*/\1/'; -}