--- a/mercurial/url.py Fri Jul 10 01:23:07 2009 +0200+++ b/mercurial/url.py Fri Jul 10 12:49:29 2009 +0200@@ -441,6 +441,7 @@ # let host port take precedence if ':' in host and '[' not in host or ']:' in host: host, port = host.rsplit(':', 1)+ port = int(port) if '[' in host: host = host[1:-1]