[BUG] Getting an empty knit tries to put

Martin Pool mbp at sourcefrog.net
Mon Apr 3 10:09:23 BST 2006


On  3 Apr 2006, Robert Collins <robertc at robertcollins.net> wrote:

> VersionedFile has that api - its VersionedFileStore that is causing the
> write request, and thats because get_weave_or_empty was called. If we:
>  * make the signature and revision files on repo initialisation and
>  * change fetch to use get_weave()
> 
> then no write attempts will be made, and instead it will fail with
> NoSuchFile

It does seem like it should be handled at the store layer - but perhaps
it's better to give a more specific indication that "there are no
versions of that file" rather than NoSuchFile, which seems a bit like a
transport-level error.

-- 
Martin




More information about the bazaar mailing list