Add support for hg fetching method