view tests/helpers.sh @ 10827:b66388f6adfa

color: don't split colors across lines (which confuses less -R) Currently, less -R doesn't support colors spanning multiple lines; only the first line will be colorized. Instead of allowing colors to span multiple lines, the color extension now applies colors to each line it receives, even when ui.write() is given multiple lines in one call.
author Brodie Rao <brodie@bitheap.org>
date Fri, 02 Apr 2010 15:22:19 -0500
parents 0065e6b42a25
children b345b1cc124f
line wrap: on
line source

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