make readconfig take a filename instead of a file pointer as argument
catch parse error while reading a config file
add a testcase for parse error
#!/bin/sh
hg init
echo "Is there an error message when trying to diff non-existing files?"
hg diff not found
echo "Is there an error message when trying to add non-existing files?"
hg add not found