tests/helpers.sh
author David Champion <dgc@uchicago.edu>
Mon, 10 May 2010 11:04:56 -0500
changeset 11148 a912f26777d3
parent 10774 0065e6b42a25
child 11198 b345b1cc124f
permissions -rw-r--r--
merge: introduce tool.check parameter tool.check is a list of check options, and can be used in place of tool.checkchanged and tool.checkconflicts: Equivalences: tool.checkchanged = yes tool.checkconflicts = no tool.check = changed tool.checkchanged = no tool.checkconflicts = yes tool.check = conflicts tool.checkchanged = yes tool.checkconflicts = yes tool.check = changed, conflicts Add _toollist() wrapper for ui.configlist() to implement this consistently. checkchanged and checkconflicts are still supported, but check is preferred for implementing new check options.

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