mercurial.py: Adds module branch support