Rev 6163: Give a warning if we have to invoke the compatibility code. in http://bazaar.launchpad.net/~jameinel/bzr/drop-idle-connections-824797
John Arbash Meinel
john at arbash-meinel.com
Thu Sep 15 13:04:37 UTC 2011
At http://bazaar.launchpad.net/~jameinel/bzr/drop-idle-connections-824797
------------------------------------------------------------
revno: 6163
revision-id: john at arbash-meinel.com-20110915130422-q7ny8yv34bglkgmg
parent: john at arbash-meinel.com-20110915125623-sxo3jk6d858alyzf
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: drop-idle-connections-824797
timestamp: Thu 2011-09-15 15:04:22 +0200
message:
Give a warning if we have to invoke the compatibility code.
-------------- next part --------------
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2011-09-15 12:56:23 +0000
+++ b/bzrlib/builtins.py 2011-09-15 13:04:22 +0000
@@ -5221,7 +5221,11 @@
t = transport.get_transport(url)
try:
protocol(t, host, port, inet, client_timeout)
- except TypeError:
+ except TypeError, e:
+ warning('Got TypeError(%s)\ntrying to call protocol: %s.%s\n'
+ 'Most likely it needs to be updated to support a'
+ ' "timeout" parameter'
+ % (e, protocol.__module__, protocol))
protocol(t, host, port, inet)
More information about the bazaar-commits
mailing list