MFC r256499:

Add support for Mercurial repositories.