Rev 4763: (andrew) Fix test_smart_request and test_smart_transport failures. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Oct 22 08:45:35 BST 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4763 [merge]
revision-id: pqm at pqm.ubuntu.com-20091022074533-1ll6d040i4ofk77b
parent: pqm at pqm.ubuntu.com-20091022010725-lzpmhctqph34xcol
parent: andrew.bennetts at canonical.com-20091022065308-zxfvgun36oxgs3ea
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2009-10-22 08:45:33 +0100
message:
  (andrew) Fix test_smart_request and test_smart_transport failures.
modified:
  bzrlib/smart/request.py        request.py-20061108095550-gunadhxmzkdjfeek-1
=== modified file 'bzrlib/smart/request.py'
--- a/bzrlib/smart/request.py	2009-10-21 06:05:49 +0000
+++ b/bzrlib/smart/request.py	2009-10-22 06:53:08 +0000
@@ -271,7 +271,7 @@
     # and allow it to be streamed into the server.
 
     def __init__(self, backing_transport, commands, root_client_path,
-        jail_root):
+        jail_root=None):
         """Constructor.
 
         :param backing_transport: a Transport to handle requests for.
@@ -281,6 +281,8 @@
         self._backing_transport = backing_transport
         self._root_client_path = root_client_path
         self._commands = commands
+        if jail_root is None:
+            jail_root = backing_transport
         self._jail_root = jail_root
         self.response = None
         self.finished_reading = False




More information about the bazaar-commits mailing list