plain/rich/subtree differences

Robert Collins robertc at
Tue Jan 8 03:50:55 GMT 2008

On Thu, 2008-01-03 at 16:07 -0500, Aaron Bentley wrote:
> Hash: SHA1
> Robert Collins wrote:

> > heres what I understand the differences to be:
> > subtree:
> >   / is versioned and has a fileid that may be TREE_ROOT
> >   paths other than / can be 'tree-reference' kinds
> > rich-roots:
> >   / is versioned has has a fileid that may be TREE_ROOT
> > plain:
> >   / has no last-modified revision and must have the id TREE_ROOT
> Confirm.

I've just been debugging a problem in my new format, and it turns out
this was wrong...

 plain(xml5) supports unique fileids at / - so / has no last-modified
revision and may have any file id.

Another note for implementors of serialisers, the in memory inventory
always has a .revision for the root at commit time. So you need to just
ignore the revision when serialising in a non-rich-root format.

GPG key available at: <>.
-------------- 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 : 

More information about the bazaar mailing list