Vincent Ladeuil wrote:
> Vincent Ladeuil has proposed merging lp:~vila/bzr-loom/595584-lazy-load-remote into lp:bzr-loom with lp:~vila/bzr-loom/595563-switch-directory as a prerequisite.
>
> Requested reviews:
> Loom Developers (bzr-loom-devs)
> Related bugs:
> #595584 test failure: AssertionError: command ['st'] loaded forbidden modules ['bzrlib.remote', 'bzrlib.smart']
> https://bugs.launchpad.net/bugs/595584
>
>
> Fix the test failure. I'm not super convinced that's the right approach but I was blocked and this works.
>
This seems correct, but unrelated:
@@ -743,11 +744,11 @@ branch_transport, 'lock', bzrlib.lockdir.LockDir) control_files.lock_write()
try:
- - for name, stream in files:
- - branch_transport.put_file(name, stream)
+ for file_name, stream in files:
+ branch_transport.put_file(file_name, stream)
finally: control_files.unlock()
- - return self.open(a_bzrdir, _found=True, )
+ return self.open(a_bzrdir, _found=True, name=name)
Otherwise, why not use lazy import up at the top, rather than multiple
local imports later?
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vincent Ladeuil wrote: /bugs.launchpad .net/bugs/ 595584
> Vincent Ladeuil has proposed merging lp:~vila/bzr-loom/595584-lazy-load-remote into lp:bzr-loom with lp:~vila/bzr-loom/595563-switch-directory as a prerequisite.
>
> Requested reviews:
> Loom Developers (bzr-loom-devs)
> Related bugs:
> #595584 test failure: AssertionError: command ['st'] loaded forbidden modules ['bzrlib.remote', 'bzrlib.smart']
> https:/
>
>
> Fix the test failure. I'm not super convinced that's the right approach but I was blocked and this works.
>
This seems correct, but unrelated:
branch_ transport, 'lock', bzrlib. lockdir. LockDir)
control_ files.lock_ write() transport. put_file( name, stream) transport. put_file( file_name, stream)
control_ files.unlock( )
@@ -743,11 +744,11 @@
try:
- - for name, stream in files:
- - branch_
+ for file_name, stream in files:
+ branch_
finally:
- - return self.open(a_bzrdir, _found=True, )
+ return self.open(a_bzrdir, _found=True, name=name)
Otherwise, why not use lazy import up at the top, rather than multiple
local imports later?
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
aWvMACgkQJdeBCY SNAAPMKwCfeCk8B a/aGtGt4hLgd6NE gFbl fpBwgI+ XmYfAweR5e
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
bmcAoKIYOHLScNX
=pdaK
-----END PGP SIGNATURE-----