[MERGE] Dirstate blowing up on None as a minikind fingerprint.

Wouter van Heyst larstiq at larstiq.dyndns.org
Sat Jul 21 19:28:54 BST 2007


On Fri, Jul 20, 2007 at 01:19:51PM -0500, John Arbash Meinel wrote:
> Wouter van Heyst wrote:
> > On Sat, Jul 14, 2007 at 10:41:04AM +0200, Wouter van Heyst wrote:
> >> Hey all,
> >>
> >> on the nested-trees branch a test was failing with funny dirstate
> >> errors, it turns out because the reference_revision for the entry is
> >> None and that got fed into DirState.save() which proceeded to blow up.
> >>
> >> The attached fix gets rid of that, but it's not directly tested
> >> (TestCompositeTree.test_apply_inventory_delta does indirectly).
> > 
> > Bweh, only now do I notice the missing attachement.
> > 
> > Wouter van Heyst
> > 
> 
> +1 if you had a test case which exposed this.
> 
> It seems to only happen if you have a nested subtree. So only people using
> --dirstate-with-subtree would ever see it.
> 
> It shouldn't be too difficult to create a tree which has an inventory
> referencing a subtree with no 'reference_revision', and then just calling
> DirState.set_state_from_inventory() with that.

How about this?

Wouter van Heyst
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dirstate-reference-revision.diff
Type: text/x-diff
Size: 3854 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070721/49e8257e/attachment.bin 


More information about the bazaar mailing list