Emre Turkoz
Emre Turkoz

Reputation: 868

hg serve: How to make it available to be cloned?

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.

Upvotes: 1

Views: 714

Answers (1)

anton.burger
anton.burger

Reputation: 5706

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.

Upvotes: 4

Related Questions