Rev 4077: Work around network_format_registry returning instances and do not mutate the lookup result. To be followed up with a root cause fix. in http://people.ubuntu.com/~robertc/baz2.0/integration
Robert Collins
robertc at robertcollins.net
Tue Mar 3 07:22:28 GMT 2009
At http://people.ubuntu.com/~robertc/baz2.0/integration
------------------------------------------------------------
revno: 4077
revision-id: robertc at robertcollins.net-20090303072225-ir6m88y7ppo10vn8
parent: robertc at robertcollins.net-20090303062928-q5akblb37uc0vzmu
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Tue 2009-03-03 18:22:25 +1100
message:
Work around network_format_registry returning instances and do not mutate the lookup result. To be followed up with a root cause fix.
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py 2009-03-03 03:27:51 +0000
+++ b/bzrlib/remote.py 2009-03-03 07:22:25 +0000
@@ -155,7 +155,8 @@
if len(response) != 3:
raise errors.UnexpectedSmartServerResponse(response)
control_name, repo_name, branch_name = response
- format = bzrdir.network_format_registry.get(control_name)
+ # ICK: perhaps change these registries to be factories only?
+ format = bzrdir.network_format_registry.get(control_name).__class__()
if repo_name:
format.repository_format = repository.network_format_registry.get(
repo_name)
More information about the bazaar-commits
mailing list