Added CheckEmptyMercurialRepository ation