bzrlib.errors.MalformedTransform on bzr shelve command

Bug #1210758 reported by Alexander Taler
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

When attempting to do a bzr shelve, I get the error shown below.

Here's the status:

 added:
   appl/core/lib/python/
   appl/core/lib/python/deliver/
   appl/core/lib/python/deliver/__init__.py
   appl/web/lib/python/deliver/web/root/templatetags/
   appl/web/lib/python/deliver/web/root/templatetags/__init__.py
   appl/web/lib/python/deliver/web/root/templatetags/deliver_root_tags.py
 modified:
   appl/core/build.sh
   appl/web/lib/python/deliver/web/root/templates/root/base.html
   appl/web/local.sh
 unknown:
   TODO
   appl/deps-wrk/
   appl/web/lib/python/deliver/web/settings.py.orig

Here's the command:

    bzr shelve --all -m 'version template tag take 2'

The changes get put on a new shelf, but they are left in the working tree, and the following error messages are printed:

 Selected changes:
  M appl/core/build.sh
 -D appl/core/lib/python/
 -D appl/core/lib/python/deliver/
 -D appl/core/lib/python/deliver/__init__.py
  M appl/web/lib/python/deliver/web/root/templates/root/base.html
 -D appl/web/lib/python/deliver/web/root/templatetags/
 -D appl/web/lib/python/deliver/web/root/templatetags/__init__.py
 -D appl/web/lib/python/deliver/web/root/templatetags/deliver_root_tags.py
  M appl/web/local.sh
 bzr: ERROR: bzrlib.errors.MalformedTransform: Tree transform is malformed [('missing parent', 'new-6'), ('missing parent', 'new-3')]

 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 6567, in run
     shelver.run()
   File "/usr/lib/python2.7/dist-packages/bzrlib/shelf_ui.py", line 218, in run
     self.message)
   File "/usr/lib/python2.7/dist-packages/bzrlib/shelf.py", line 396, in shelve_changes
     creator.transform()
   File "/usr/lib/python2.7/dist-packages/bzrlib/shelf.py", line 261, in transform
     self.work_transform.apply()
   File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 1719, in apply
     self._check_malformed()
   File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 555, in _check_malformed
     raise MalformedTransform(conflicts=conflicts)
 MalformedTransform: Tree transform is malformed [('missing parent', 'new-6'), ('missing parent', 'new-3')]

 bzr 2.6.0dev3 on python 2.7.5 (Linux-3.9-1-amd64-x86_64-with-debian-jessie-
     sid)
 arguments: ['/usr/bin/bzr', 'shelve', '--all', '-m', 'version template tag
     take 2']
 plugins: bash_completion[2.6.0dev3], changelog_merge[2.6.0dev3],
     grep[2.6.0dev3], launchpad[2.6.0dev3], netrc_credential_store[2.6.0dev3],
     news_merge[2.6.0dev3], po_merge[2.6.0dev3], weave_fmt[2.6.0dev3]
 encoding: 'ascii', fsenc: 'utf8', lang: 'en_NZ.UTF-8'

Revision history for this message
Alexander Taler (alex-idereal) wrote :

When I subsequently do a revert to get rid of the changes, I get the following error messages about conflicts, perhaps this is the origin of the shelf error:

  M appl/core/build.sh
 - appl/core/lib/python/
 - appl/core/lib/python/deliver/
 - appl/core/lib/python/deliver/__init__.py
  M appl/web/lib/python/deliver/web/root/templates/root/base.html
 - appl/web/lib/python/deliver/web/root/templatetags/
 - appl/web/lib/python/deliver/web/root/templatetags/__init__.py
 - appl/web/lib/python/deliver/web/root/templatetags/deliver_root_tags.py
  M appl/web/local.sh
 Conflict: can't delete appl/core/lib/python because it is not empty. Not deleting.
 Conflict: can't delete appl/core/lib/python/deliver because it is not empty. Not deleting.
 Conflict: can't delete appl/web/lib/python/deliver/web/root/templatetags because it is not empty. Not deleting.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.