hgserve:如何使其可被克隆?
我使用以下命令从命令行启动 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
省略
-a 127.0.0.1
。包含它会限制hg
监听 环回接口而不是实际的网络接口。另外,请确保您的防火墙允许从其他计算机连接到
hg
正在侦听的端口。Leave out the
-a 127.0.0.1
. Including it restrictshg
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.