[#1363] Use ConfigParser to update .hgrc file on repo refresh

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

Rick Copeland Rick Copeland 2011-01-24

changed ForgeGit/forgegit/model/git_repo.py
changed ForgeHg/forgehg/model/hg.py
changed ForgeSVN/forgesvn/model/svn.py
ForgeGit/forgegit/model/git_repo.py Diff Switch to side-by-side view
Loading...
ForgeHg/forgehg/model/hg.py Diff Switch to side-by-side view
Loading...
ForgeSVN/forgesvn/model/svn.py Diff Switch to side-by-side view
Loading...