![Mercurial 镜像:中止:没有此文件或目录:http://[...]/00manifest.i](https://linux22.com/image/1238057/Mercurial%20%E9%95%9C%E5%83%8F%EF%BC%9A%E4%B8%AD%E6%AD%A2%EF%BC%9A%E6%B2%A1%E6%9C%89%E6%AD%A4%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%EF%BC%9Ahttp%3A%2F%2F%5B...%5D%2F00manifest.i.png)
我正在尝试在我们的本地网络中设置 mercurial 存储库(特别是 code.python.org)的每日镜像,并通过 Apache HTTPD 为其提供服务。
在托管 apache 的远程主机上,我执行了以下操作:
$ cd /var/www
$ hg clone http://code.python.org/hg/trunk/
在我的 MacBook 上,我运行:
$ 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 没有显示与此特定错误相关的任何结果。我记得当时可以通过简单的克隆来设置 Bazaar 镜像。Mercurial 不是这样工作的吗?我如何设置必须进一步充当克隆 URL 的镜像?
答案1
这看起来像是 static-http 的一个错误(static-http 很慢,应尽可能避免使用)。但您最好使用 hgweb(使用 cgi 或 wsgi 为 mercurial 提供服务)。
看http://mercurial.selenic.com/wiki/PublishingRepositories了解使用说明。