question about added and manually removed file

Alexander Belchenko bialix at ukr.net
Thu Oct 9 00:50:16 BST 2008


Robert Collins пишет:
> On Wed, 2008-10-08 at 17:25 +0300, Alexander Belchenko wrote:
>> I have question about added files and then removed manually before commit..
>> For such files iter_changes() give following interesting info:
>>
>> versioned       -> (False, True)
>> changed_content -> False
>> kind            -> (None, None)
>>
>> Should I rely on changed_content or on kind to detect such files?
> 
> kind - a missing file has a kind of None.
> so the test is
> is_missing = versioned[1] and kind[1] is None

Thanks.




More information about the bazaar mailing list