Sat, 28 Aug 2010 12:31:07 -0400 mail/hgweb: support service names for ports (issue2350)
Brodie Rao <brodie@bitheap.org> [Sat, 28 Aug 2010 12:31:07 -0400] rev 12076
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.
(0) -10000 -3000 -1000 -300 -100 -30 -10 -1 +1 +10 +30 +100 +300 +1000 +3000 +10000 +30000 tip