tests/test-hgrc
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 18 Nov 2006 23:51:14 -0200
changeset 3677 1a0fa3914c46
parent 1473 7d66ce9895fa
child 4659 7a7d4937272b
permissions -rwxr-xr-x
Avoid looking up usernames if the current user owns the .hgrc file Converting uids into usernames may be somewhat expensive when NIS or LDAP is involved.

#!/bin/sh

mkdir t
cd t
hg init
echo "invalid" > .hg/hgrc
hg status 2>&1 |sed -e "s:/.*\(/t/.*\):...\1:"