New issue 357: push error when custom port
http://bitbucket.org/tortoisehg/stable/issue/357/push-error-when-custom-port
Anonymous on Fri, 3 Jul 2009 07:57:17 +0200:
Description:
If host='127.0.0.1:81'(use custom port), hg push will error.
error message:
.......
File "F:\devtools\cvs\hg\download\mercurial-1.3\mercurial\url.py", line 247,
in _sendfile
connection.send(self, data)
File "c:\dev\Python25\lib\httplib.py", line 699, in send
self.connect()
File "c:\dev\Python25\lib\httplib.py", line 1134, in connect
sock.connect((self.host, self.port))
File "<string>", line 1, in connect
TypeError: an integer is required
fix mercurial-1.3 url.py:
def _makeconnection(self, host, port=443, *args, **kwargs):
.......
# let host port take precedence
if ':' in host and '[' not in host or ']:' in host:
host, port = host.rsplit(':', 1)
port = int(port) ##want to add this code
if '[' in host:
host = host[1:-1]
--
This is an issue notification from bitbucket.org.
You are receiving this either because you are the
owner of the issue, or you are following the issue.
------------------------------------------------------------------------------
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop