Previously, we appended a [hooks] section to the hgrc file in mercurial
repositories when forcing a refresh, but this generated files with multiple
[hooks] sections. This has been rewritten to use the stdlib ConfigParser to read
and write the hgrc file.
There were also minor changes in this commit that fixed the default value for config['base_url'].
Signed-off-by: Rick Copeland rcopeland@geek.net