bzr commit on a split tree crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After using 'bzr split', trying to 'bzr commit' changes in the subdir crashes.
Here is an example from a test repository I made:
$ bzr version
Bazaar (bzr) 1.1.0.candidate.1
Python interpreter: /usr/bin/python 2.4.4.final.0
Python standard library: /usr/lib/python2.4
bzrlib: /usr/lib/
Bazaar configuration: /home/wjlanda/
Bazaar log file: /home/wjlanda/
Copyright 2005, 2006, 2007 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
$ mkdir /tmp/bzr_
$ cd /tmp/bzr_
$ bzr init --rich-root .
$ touch A B
$ mkdir subdir
$ touch subdir/A subdir/B
$ bzr add
added A
added B
added subdir
added subdir/A
added subdir/B
$ bzr commit -m "Added some files"
Committing to: /tmp/bzr_
added A
added B
added subdir
added subdir/A
added subdir/B
Committed revision 1.
$ bzr split subdir
$ cd subdir/
$ bzr status
removed:
A
B
renamed:
subdir =>
$ rm A
$ touch C
$ bzr add
added C
$ bzr commit -m "Committing in split subdir."
Committing to: /tmp/bzr_
renamed subdir =>
missing A
added C
deleted
deleted A
deleted B
deleted subdir/A
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
author=author)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
result = WorkingTree3.
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
revprops=
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
if entry[0][2] != file_id:
TypeError: unsubscriptable object
bzr 1.1.0.candidate.1 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'Committing in split subdir.']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bzrtools /usr/lib/
email /usr/lib/
gtk /usr/lib/
launchpad /usr/lib/
multiparent /usr/lib/
rebase /usr/lib/
svn /home/wjlanda/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
$
I can reproduce the problem.