[MERGE] deprecated EmptyTree

Robert Collins robertc at robertcollins.net
Fri Jul 21 09:20:02 BST 2006


On Fri, 2006-07-21 at 15:58 +1000, Martin Pool wrote:
> 
> > What do you think of having the empty tree have a root with a
> file-id of
> > ROOT_ID ? I think it is a desirable property that an empty tree be
> able
> > to match precisely a tree committed with no files and no ancestors.
> > 
> > I realise this is different to what you have done - so I'd like to
> know
> > what things it would impact negatively.
> 
> I'm not sure what Aaron did or would have done, but it sounds
> plausible.
> If we use a different root id it needs to be assigned somehow in the
> space between the empty tree and the first commit.  (I say in that
> space
> because it can happen at commit, though I think we said it would
> happen
> when the working tree is built.)  But representing that as addition of
> a
> new id to the root (rather than insertion of a new root directory)
> seems OK. 

I'd like to confirm - I think what you are saying is:
'it sounds plausible to change the id of the root node between EmptyTree
and first commit rather than adding a root between EmptyTree and first
commmit'

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/20060721/7fe09c89/attachment.pgp 


More information about the bazaar mailing list