bzr crashes when shelving new dir

Bug #1419333 reported by Sondra Kinsey
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

bzr crashed when shelving certain changes. I suspect (though don't really know) that it has something to do with adding a directory and then immediately shelving it (without committing). Is bzr removing the parent directory before removing its children?
I am running bzr out-of-the-box from Ubuntu. bzr check revealed no problems.
I can workaround this, but I'm bummed to know bzr isn't as mature and stable as I thought.

$ bzr shelve --all comp-info/ -m comp-info
Selected changes:
+N comp-info/unknown-1/Ethan-Thinkpad.txt
R comp-info/monitor-4/2014-09-29/ => comp-info/unknown-1/
 M comp-info/monitor-4/misc.txt
-D comp-info/sims-PS-LAB29/
-D comp-info/sims-PS-LAB29/boottimes
-D comp-info/sims-PS-LAB29/disks-status.txt
-D comp-info/sims-PS-LAB29/misc.txt
-D comp-info/sims-PS-LAB29/modules.list
-D comp-info/sims-PS-LAB29/storage-devices.txt
 M comp-info/sims-HRHA-5-PC/misc.txt
 M comp-info/sims-PS-LAB03/misc.txt
-D comp-info/sims-PS-LAB06/
-D comp-info/sims-PS-LAB06/misc.txt
bzr: ERROR: bzrlib.errors.MalformedTransform: Tree transform is malformed [('missing parent', 'new-1')]

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-1')]

bzr 2.7.0dev1 on python 2.7.6 (Linux-3.13.0-32-generic-i686-with-
    Ubuntu-14.04-trusty)
arguments: ['/usr/bin/bzr', 'shelve', '--all', 'comp-info/', 'comp-info']
plugins: bash_completion[2.7.0dev1], changelog_merge[2.7.0dev1],
    grep[2.7.0dev1], launchpad[2.7.0dev1], netrc_credential_store[2.7.0dev1],
    news_merge[2.7.0dev1], po_merge[2.7.0dev1], weave_fmt[2.7.0dev1]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

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.