Not sure exactly how to do it (not used mercurial in a long time), but I extracted the repository tarball to a directory then used hg clone to make the code usable/readable