I have a client with an open .hg directory. For example, the URL http://example.com/.hg/dirstate shows a plain text config file. They have not enabled directory listing, so http://example.com/.hg/ gives a 403 Forbidden page.
I want to download the repository in order to obtain the source code. How can I download the contents of the .hg directory?