Comment 3 for bug 389674

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 389674] Re: exception encountered when unshelving

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

Paul Hinze wrote:
> Same problem here on bzr 2.0.0
>
> Unshelving changes with id "1".
> bzr: ERROR: exceptions.NotImplementedError: <property object at 0x97b370c>
...

> File "/usr/lib/python2.6/site-packages/bzrlib/transform.py", line 2709, in conflict_pass
> if path_tree.inventory[file_id].parent_id is None:
> File "/usr/lib/python2.6/site-packages/bzrlib/transform.py", line 1706, in inventory
> raise NotImplementedError(_PreviewTree.inventory)
> NotImplementedError: <property object at 0x97b370c>

This conflict happens during:
          elif c_type == 'unversioned parent':

Which seems to say that a directory was removed. I can't tell whether
you shelved the deletion of a directory, and then added a new file. Or
whether you shelved changes to a file, and then deleted the directory.
Anyway, it might help to make it easier to track down under what
conditions it takes to trigger this.

Of course, that specific line claims that it is just trying to find out
if the given unversioned parent is the 'tree root', which could be more
easily found with:

if file_id == path_tree.path2id(''):

And doesn't have to access a '.inventory' member, and might make things
work again.

Care to try that one-line change and see if it fixes things for you?

John
=:->

 status confirmed
 importance medium
 tags shelve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksgIA4ACgkQJdeBCYSNAAMUuwCgxzI0snWDM7IHXwl8ZrOQMdX3
ObgAoLh747aEPI52DZ3rHQi/PGWGIo3Y
=OgM+
-----END PGP SIGNATURE-----