Getting hg serve to work
Greg Ward
greg-hg at gerg.ca
Wed Sep 2 21:18:04 CDT 2009
On Wed, Sep 2, 2009 at 9:48 PM, Jeffrey Barish<jeff_barish at earthlink.net> wrote:
>> hg clone http://nn.nnn.nnn.nnn:8000/
>
> Thanks. That command created a clone, but it was in a directory called
> nn.nnn.nnn.nnn:8000. I tried
You're the second person to notice this quirk in the last couple of
days. Hmmmm. The last person who did had a good suggestion, which
was to allow http://n.n.n.n:p/reponame as a valid prefix for 'hg
serve' URLs. AFAIK no one has jumped up to implement this idea.
> hg clone http://nn.nnn.nnn.nnn:8000 clone-repo
>
> That worked. Since 8000 is the default, I don't understand why I have to
> specify it.
8000 is the default port for 'hg serve', not for all HTTP servers.
Usually when people put a Mercurial repo online, they use hgweb.cgi
behind a regular web server (like Apache or lighttpd). 'hg serve' is
really meant for quick 'n dirty one-off web serving.
> Moreover, the example in the O'Sullivan book doesn't have the
> port number.
Where precisely is this example? Could be a bug in the book. Nobody's perfect.
Greg
More information about the Mercurial
mailing list