question about added and manually removed file

Robert Collins robertc at robertcollins.net
Thu Oct 9 00:35:21 BST 2008


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

> I'm trying to fix bug in QBzr related to such files.
> 
> BTW, how to name such files? misadded (added+missing)?

They are just missing from a status perspective; for commit they will
not show up at all because of the implicit removal of missing files.

-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: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081009/69d92e28/attachment.pgp 


More information about the bazaar mailing list