Added optional arguments to hg repositories.