view tests/test-hgrc @ 2294:ce67fa312f61

Catch urllib's HTTPException and give a meaningful error message to the user. Usually urllib only throws HTTPError exceptions, which already are a subclass of IOError.
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 16 May 2006 09:35:38 +0200
parents 7d66ce9895fa
children 7a7d4937272b
line wrap: on
line source

#!/bin/sh

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