Getting rid of RootEntry?

Aaron Bentley aaron.bentley at utoronto.ca
Mon Jan 16 13:56:11 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDy6X60F+nu1YWqI0RAoIqAJ9ypgAnAmJnEsdEwm3Nv0PYCeWPmACfZgBa
sWK47naVIOgPNFtmUD4FOXk=
=4EVN
-----END PGP SIGNATURE-----




More information about the bazaar mailing list