[MERGE] [BUG 363837] Catch _win32_delete_readonly failure to remove file or directory and try to recover
Alexander Belchenko
bialix at ukr.net
Wed May 6 20:24:02 BST 2009
John Arbash Meinel пишет:
> Alexander Belchenko wrote:
>> Martin Pool ?8H5B:
>>> 2009/5/6 John Arbash Meinel <john at arbash-meinel.com>:
>>>> I think we could
>>>>
>>>> 1) Insert a small wait loop after the process goes away to see if it
>>>> releases the file. This will help fix transient things. We could try
>>>> every 100ms or so, for a max of 1s.
>> For diff there will be 2 files, for merge up to 3 files. So in the bad
>> possible situation bzr will wait up to 3 minutes just to try cleanup
>> things? Do you think it's really better than exit immediately and print
>> the names of files those are left?
>
> I said every 100milliseconds up to a max of 1 second. So it would be 3
> seconds to wait, not 3 minutes.
Yep, Marius has already corrected my poor math.
I just want to point to the fact that such "solution" will introduce noticeable delay in some odd
cases, and so it should (?) be used very carefully. Leaving the temp file when bzr cannot remove it
is smaller evil for me. But... I don't have anti-virus scanning all my files all the time, so I can
miss something obvious and very important.
More information about the bazaar
mailing list