[RFC] dirstate and deletes

Robert Collins robertc at robertcollins.net
Tue Sep 12 23:05:06 BST 2006


On Tue, 2006-09-12 at 09:50 -0500, John Arbash Meinel wrote:


> Dirstate is specifically structured as:
> 
> info in current => [info in parents]
> 
> So if the path doesn't exist in current, then it goes to the end, where
> we have a list of empty 'info in current' records, and all of the parent
> entries. The '=>' map is by file_id, so if there was a rename from
> parent to current, the parent path will be different than the current
> path, but the file ids will be the same.
> 
> But the most important piece that indicates whether a path is versioned
> in the current inventory is just if there is a file_id associated with it.
> 
> My concern about Robert setting empty paths for unversioned (and
> deleted?) files is that we probably need a break in-between, since the
> Root path also has an empty path. Or we just always have a Root path,
> and any paths beyond the first that are empty must be unversioned....

My plan is that there is always a versioned Root, and there is a special
case api if you need to do funky shit to it.

This is because dirstate cannot hoist it self by its own bootstraps.

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


More information about the bazaar mailing list