Getting rid of RootEntry?
John A Meinel
john at arbash-meinel.com
Mon Jan 16 14:05:06 GMT 2006
Aaron Bentley wrote:
> Hi all,
>
> While working on the Transactional Tree Transform, I figured out a
> pretty easy way of moving the tree root. That is, turning the tree root
> into a subdirectory.
>
> I believe it's working perfectly, but it breaks diff and status, because
> it causes a file type change; RootEntry has a file type of "root
> directory", but after the move, its type is "directory".
>
> I think there are three ways to handle this:
> 1. Get rid of RootEntry, and have the the root entry be an
> InventoryDirectory with no parent or name.
> 2. Change the file type of RootEntry to "directory"
> 3. Make it legal for files to change type
>
> My natural inclination is the first, because I don't see much advantage
> in making the root entry a special type. Any thoughts?
>
> Aaron
>
With the future work of having nested trees, we were thinking to have a
new inventory type inside the parent tree. But that doesn't mean it
needs to be a distinct entry inside its own tree.
Because of a desire to be able to merge branches, it seems like it would
be nice to be able to move the root entry.
We may want #3 anyway, but I'm okay with #1 for now.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060116/1221b7b5/attachment.pgp
More information about the bazaar
mailing list