diff tests/test-http.out @ 6262:de7256c82fad

hgweb: clarify which address and port can/cannot be bound at startup (bug 769) The error message at startup when the address/port could not be bound was confusing: hg serve abort: cannot start server: Address already in use Be more explicit: $ hg serve -a localhost abort: cannot start server at 'localhost:8000': Address already in use Also be more explicit on success, showing hostname and ip address/port: $ hg -v serve -a localhost -p 80 listening at http://localhost/ (127.0.0.1:80) We are careful to handle a missconfigured machine whose hostname does not resolve, falling back to the address given at the command line. Remove a dead-code error message.
author Stephen Deasey <sdeasey@gmail.com>
date Mon, 10 Mar 2008 19:25:34 +0000
parents e3a0c092b4e2
children 0750f11152fe
line wrap: on
line diff
--- a/tests/test-http.out	Fri Mar 14 22:12:50 2008 +0100
+++ b/tests/test-http.out	Mon Mar 10 19:25:34 2008 +0000
@@ -1,5 +1,5 @@
 adding foo
-abort: cannot start server:
+abort: cannot start server at ':20060':
 % clone via stream
 streaming all changes
 XXX files to transfer, XXX bytes of data