mercurial.py: Adds _fix_mercurial_source() function