RemoteRepositoryFormat.supports_chk

Robert Collins robert.collins at canonical.com
Mon Jun 15 23:48:31 BST 2009


On Mon, 2009-06-15 at 12:17 -0500, John Arbash Meinel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I was trying to write some tests that check that the generic
> "StreamSource" object can read and write to all formats. As part of
> fixing bug #387294. I then went to go farther and try to add tests that
> we can stream to/from the smart server in similar ways.
> 
> I ran into problems because RemoteRepositoryFormat.supports_chks is
> always None. What is the correct fix for this? Just turn supports_chks
> into a property and have it thunk over to self._custom_format.supports_chks?

Yah, follow the pattern of other attributes.

Also add tests for this to
bzrlib/tests/per_repository_chk/test_{un}supported.py.

-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090616/38b4a40e/attachment.pgp 


More information about the bazaar mailing list