[BUG] Getting an empty knit tries to put

Robert Collins robertc at robertcollins.net
Sun Apr 2 00:51:25 BST 2006


On Fri, 2006-03-31 at 14:48 -0500, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> 
> Knits can't be used with a readonly source at the moment, because
> attempting to pull them will cause bzr to attempt to put.
> 
> This happens when there are no versions in the knit, and
> VersionedFileStore.get_weave_or_empty is called.
> 
> In KnitVersionedFile.__init__, if self.versions() is empty, it will not
> only produce a new knit, but attempt to write it to the transport.

Right, this is by design: VersionedFiles exist on a persistent storage
place.

The bug here is that Repository initialisation is 'lazy' and does not
create empty revision, signature knits.

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060402/026a1441/attachment.pgp 


More information about the bazaar mailing list