Mercurial > hg
view tests/helpers.sh @ 10955:470a6ace7574
Added support for 'pretxncommit', so that one can call the ACL hook at
pre-commit time too. This is useful because now it's possible to avoid
violating ACL permissions much sooner, at commit time, instead of
waiting for a PUSH to check if there were any invalid commits.
author | Elifarley Callado Coelho Cruz <elifarley@gmail.com> |
---|---|
date | Tue, 06 Apr 2010 22:15:43 -0300 |
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/"; }