Implement preliminary checking for hg repositories