Comment 0 for bug 611739

Revision history for this message
Alexander Belchenko (bialix) wrote :

I don't think it's win32-related problem.

If I have added directory with ignored file inside and I want to shelve this directory I've got
bzr: ERROR: Tree transform is malformed [('missing parent', 'new-1')]

C:\Temp\1>bzr st
added:
  foo/bar/
  foo/bar/spam

C:\Temp\1>cd foo/bar
C:\Temp\1\foo\bar>

C:\Temp\1\foo\bar>echo > 1.~

C:\Temp\1\foo\bar>cd ../..
C:\Temp\1>

C:\Temp\1>bzr st
added:
  foo/bar/
  foo/bar/spam

C:\Temp\1>bzr unknowns

C:\Temp\1>bzr ignored
foo/bar/1.~ *~

C:\Temp\1>bzr shelve --all
Selected changes:
-D foo/bar/
-D foo/bar/spam
bzr: ERROR: Tree transform is malformed [('missing parent', 'new-1')]

After that an empty shelve itme created:

C:\Temp\1>bzr st
added:
  foo/bar/
  foo/bar/spam

C:\Temp\1>bzr shelve --list
  1: <no message>

C:\Temp\1>bzr unshelve --dry-run
Using changes with id "1".

.bzr.log related to shelve --all:

0.235 bazaar version: 2.1.2
0.235 bzr arguments: [u'shelve', u'--all']
0.266 looking for plugins in C:\work\Bazaar\plugins
0.454 looking for plugins in C:/Program Files/Bazaar/plugins
0.485 encoding stdout as sys.stdout encoding 'cp866'
0.610 opening working tree 'C:/Temp/1'
[ 3020] 2010-07-30 18:18:49.203 INFO: Selected changes:
[ 3020] 2010-07-30 18:18:49.203 INFO: -D foo/bar/
[ 3020] 2010-07-30 18:18:49.203 INFO: -D foo/bar/spam
0.688 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 5770, in run
  File "bzrlib\shelf_ui.pyo", line 213, in run
  File "bzrlib\shelf.pyo", line 377, in shelve_changes
  File "bzrlib\shelf.pyo", line 251, in transform
  File "bzrlib\transform.pyo", line 1521, in apply
  File "bzrlib\transform.pyo", line 510, in _check_malformed
MalformedTransform: Tree transform is malformed [('missing parent', 'new-1')]