##// END OF EJS Templates
mail/hgweb: support service names for ports (issue2350)...
mail/hgweb: support service names for ports (issue2350) This adds util.getport(port) which tries to parse port as an int, and failing that, looks it up using socket.getservbyname(). Thus, the following will work: [smtp] port = submission [web] port = http This does not apply to ports in URLs used in clone, pull, etc.

File last commit:

r12076:49463314 default
r12076:49463314 default
Show More
test-serve.out
25 lines | 757 B | text/plain | TextLexer
Joel Rosdahl
Add test reproducing a bug in "hg serve -v"
r4504 % Without -v
Alexis S. L. Carvalho
serve: respect settings from .hg/hgrc...
r4835 access log created - .hg/hgrc respected
Dirkjan Ochtman
tests: easier error diagnostics for test-serve
r6461 % errors
Joel Rosdahl
Add test reproducing a bug in "hg serve -v"
r4504 % With -v
Thomas Arendsen Hein
test-serve: Show if port config and option are correctly used...
r10633 listening at http://localhost/ (bound to 127.0.0.1:HGPORT1)
% errors
% With -v and -p HGPORT2
listening at http://localhost/ (bound to 127.0.0.1:HGPORT2)
Dirkjan Ochtman
tests: easier error diagnostics for test-serve
r6461 % errors
Brodie Rao
mail/hgweb: support service names for ports (issue2350)...
r12076 % With -v and -p http (should fail)
abort: cannot start server at 'localhost:80': Permission denied
abort: child process failed to start
% errors
Michele Cella
tests for hg serve prefix option
r5971 % With --prefix foo
Thomas Arendsen Hein
test-serve: Show if port config and option are correctly used...
r10633 listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1)
Dirkjan Ochtman
tests: easier error diagnostics for test-serve
r6461 % errors
Michele Cella
tests for hg serve prefix option
r5971 % With --prefix /foo
Thomas Arendsen Hein
test-serve: Show if port config and option are correctly used...
r10633 listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1)
Dirkjan Ochtman
tests: easier error diagnostics for test-serve
r6461 % errors
Michele Cella
tests for hg serve prefix option
r5971 % With --prefix foo/
Thomas Arendsen Hein
test-serve: Show if port config and option are correctly used...
r10633 listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1)
Dirkjan Ochtman
tests: easier error diagnostics for test-serve
r6461 % errors
Michele Cella
tests for hg serve prefix option
r5971 % With --prefix /foo/
Thomas Arendsen Hein
test-serve: Show if port config and option are correctly used...
r10633 listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1)
Dirkjan Ochtman
tests: easier error diagnostics for test-serve
r6461 % errors