tests/helpers.sh
author Matt Mackall <mpm@selenic.com>
Mon, 05 Apr 2010 14:33:41 -0500
changeset 10841 7879bff6cacf
parent 10774 0065e6b42a25
child 11198 b345b1cc124f
permissions -rw-r--r--
contrib: drop rewrite-revlog

#/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/"; }