hgserve:如何使其可被克隆?

发布于 2024-11-30 13:02:10 字数 936 浏览 1 评论 0原文

我使用以下命令从命令行启动 hgserve 没有问题:“hgserve -p 9001 -v -a 127.0.0.1”。

服务器已启动并可从我的浏览器访问,地址为: http://localhost:9001/

当我打开第二个命令行窗口,然后输入 hg clone http://127.0.0.1,它会给出以下输出。

real URL is http://localhost/
Traceback (most recent call last):
  File "hg", line 42, in <module>
  File "mercurial\dispatch.pyo", line 27, in run
  File "mercurial\dispatch.pyo", line 64, in dispatch
  File "mercurial\dispatch.pyo", line 127, in _runcatch
  File "mercurial\ui.pyo", line 606, in warn
  File "mercurial\ui.pyo", line 453, in write_err
IOError: [Errno 12] Not enough space

显然我做错了什么。但我不知道是什么。如何让我的存储库准备好被其他人使用 hg clone 克隆?

编辑:我取得了一些进展。当我输入 hg clone http://127.0.0.1/ hg 时,它会复制 hgserve 提供的存储库。

但我仍然无法从另一台计算机复制。

ps我用的是windows 7。

I start hg serve from the command line without a problem using the command: "hg serve -p 9001 -v -a 127.0.0.1".

The server is initiated and reachable from my browser with the adress: http://localhost:9001/

When I open a second command line window, and type in hg clone http://127.0.0.1, it gives the output below.

real URL is http://localhost/
Traceback (most recent call last):
  File "hg", line 42, in <module>
  File "mercurial\dispatch.pyo", line 27, in run
  File "mercurial\dispatch.pyo", line 64, in dispatch
  File "mercurial\dispatch.pyo", line 127, in _runcatch
  File "mercurial\ui.pyo", line 606, in warn
  File "mercurial\ui.pyo", line 453, in write_err
IOError: [Errno 12] Not enough space

Obviously I'm doing something wrong. But I don't know what. How can I make my repo ready to be cloned by others using hg clone?

edit: I had some progress. When I type hg clone http://127.0.0.1/ hg it copies the repo that is made available by hg serve.

But still I can't copy from another computer.

p.s. I'm using windows 7.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

山人契 2024-12-07 13:02:10

省略 -a 127.0.0.1。包含它会限制 hg 监听 环回接口而不是实际的网络接口。

另外,请确保您的防火墙允许从其他计算机连接到 hg 正在侦听的端口。

Leave out the -a 127.0.0.1. Including it restricts hg to listening on the loopback interface instead of an actual network interface.

Also, make sure your firewall allows connections from other machines to the port that hg is listening on.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文