2

I am trying to setup a daily mirror of a mercurial repository - code.python.org in particular - within our local network, and serve that via Apache HTTPD.

On the remote host that hosts apache, I did this:

$ cd /var/www
$ hg clone http://code.python.org/hg/trunk/

On my macbook, I ran:

$ hg -v clone http://remote/trunk/
(falling back to static-http)
abort: No such file or directory: http://remote/trunk/.hg/store/00manifest.i

Google does not show any relevant result for this particular error. I remember back in those days being able to setup Bazaar mirrors by a simple clone. Doesn't Mercurial work like that? How do I setup a mirror that must further act like a clone URL?

3
  • Sanity check: does http://remote/trunk/.hg/store/00manifest.i exist? Is it accessible? May 5, 2010 at 3:57
  • @Stephen yup, it can be accessed via HTTP; and also has others+read permission on the filesystem itself. May 5, 2010 at 18:13
  • I wonder if mercurial can be made to print a stack-trace (-v didn't work for me), so I can take a look at the root cause of this issue myself. May 5, 2010 at 18:14

1 Answer 1

1

It looks like a bug with static-http (static-http is slow and should be avoided whenever possible). But you should preferably use hgweb (serve mercurial with a cgi or wsgi).

See http://mercurial.selenic.com/wiki/PublishingRepositories for instructions.

1
  • Being slow is a trade-off I am willing to make given the simplicity of server setup. May 4, 2010 at 21:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .