Don't modify hgrc when running purge
Merge pull request #5141 from kisielk/hg

hg module: Don't modify hgrc when running purge