Comment 14 for bug 622566

Revision history for this message
Vincent Ladeuil (vila) wrote : Re: [Bug 622566] Re: ftp access inefficiency

>>>>> Gary van der Merwe <email address hidden> writes:

    > On 25/08/2010 07:49, Alexander Belchenko wrote:
    >> Yes, I'm invalidating the cache on put, and on rename/move calls. But
    >> looking at logs it seems only put matters.

    > I would say you should rename the cache when the file is renamed. So if
    > you rename a b then you should do:
    > cache['b'] = cache['a']
    > del cache['a']

Good idea as it will partly address the repacks. Well, for people using
the plugin that is ;)

I think using temp files is the safest bet to cover all cases anyway
even if it's less efficient from one bzr invocation to the other.