Testcase for a hg repo url that ends with a trailing slash
Fixed checkout of a hg url that ends with a trailing slash