[PATCH 4 of 6] tests: remove filtertmp.py and helpers.sh

Mads Kiilerich mads at kiilerich.com
Wed Oct 6 04:01:51 CDT 2010


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1286355472 -7200
# Node ID 23a1619bf343907c44f634f08d29297a010e95a4
# Parent  47d4f3af9307a4d6fbe61e331f88d41e68400c9c
tests: remove filtertmp.py and helpers.sh

These nice starts ended up being replaced with globs.

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/';
-}


More information about the Mercurial-devel mailing list