rhg: add support for detailed exit code for ConfigParseError
This patch adds basic support for detailed exit code to rhg with support for ConfigParseError.
rhg right not does not seem to have all and same errors as core hg now which makes sense since it only implements part of things.