[BUG?] revisiontree's root node has no revision attribute set

Robert Collins robertc at robertcollins.net
Sat Jul 29 01:26:55 BST 2006


On Fri, 2006-07-28 at 09:33 -0400, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Robert Collins wrote:
> > On Thu, 2006-07-27 at 09:46 -0400, Aaron Bentley wrote:
> > I think its revision is separate to the wt last-revision. We need two
> > revision values:
> > 1) to record the time its name and parent-id and type was set in this
> > tree
> > 2) to record the revision id of the subtree - which is the
> > WT.last_revision.
> > 
> > I've been modelling this as ChildRoot.contents == (2), and
> > childRoot.revision is updated when anything, including the contents
> > change - this is consistent with files and symlinks.
> 
> This sounds reasonable.  To be clear: this changes every time the
> last-revision in the subtree changes?

If the last-revision in the subtree changes, then on a commit in the
outer tree, the .revision on the ChildRoot will be updated to the
revision-id of the commit being done in the outer tree, and the content
of the recorded ChildRoot will be the last-revision of the subtree.

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/20060729/3d460970/attachment.pgp 


More information about the bazaar mailing list