I found a hint in a Mercurial FAQ to use https not http in the URL for the project. I _think_ I have now succeeded.