Shelve crashes on directories with unversioned content

Bug #925424 reported by Gustavo Niemeyer
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

% dpkg -s bzr | grep Version
Version: 2.5.0~bzr6455.6161~ppa4023~oneiric1

% bzr init .
Created a standalone tree (format: 2a)

% mkdir a
% touch a/b
% touch a/c
% bzr add a/b
adding a
adding a/b

% bzr shelve --all
Selected changes:
-D a/
-D a/b
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 1141, 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 6528, 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 382, in shelve_changes
    creator.transform()
  File "/usr/lib/python2.7/dist-packages/bzrlib/shelf.py", line 256, in transform
    self.work_transform.apply()
  File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 1730, in apply
    self._check_malformed()
  File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 554, in _check_malformed
    raise MalformedTransform(conflicts=conflicts)
MalformedTransform: Tree transform is malformed [('missing parent', 'new-1')]

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2012-02-02T11:51.crash
if a bug-reporting window does not automatically appear.

Revision history for this message
Martin Packman (gz) wrote :

Same basic cause as bug 641330 with shelve not working properly before the first commit. But is now breaking at the shelve stage rather at unshelve, which is actually less bad.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.