hg serve find open ports
TK Soh
teekaysoh at gmail.com
Tue Jun 29 06:55:04 UTC 2010
On Tue, Jun 29, 2010 at 6:13 AM, Benoit Boissinot <bboissin at gmail.com> wrote:
> On Tue, Jun 29, 2010 at 6:39 AM, TK Soh <teekaysoh at gmail.com> wrote:
>> Not sure if this has been discussed, but I can't find the topic in my
>> archive. I am just wondering if there's a way for hg serve to find and
>> use an open port, perhaps by supplying a range of ports to --port
>> option, so hg serve can keep trying until it succeeds within the
>> range. Comment?
>>
>
> hg serve -p 0 does that (you cannot choose the range though)
> (see hg help serve in recent hg).
Just found out. Unfortunately we are still stuck with 1.4.3. Working
on upgrade. Thanks for pointer.
BTW, the port number seem a bit too random to me. It'd be nice to be
able to spec a range.
More information about the Mercurial
mailing list