"AssertionError: name already in parent" when running update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A colleague just came across this while trying to update a checkout:
0.750 Using fetch logic to copy between KnitPackReposit
+ssh://
1.039 Traceback (most recent call last):
File "/usr/lib/
in run_bzr_
return run_bzr(argv)
File "/usr/lib/
in run_bzr
ret = run(*run_argv)
File "/usr/lib/
in run_argv_aliases
return self.run(
File "/usr/lib/
in run
possible_
File "/usr/lib/
2133, in update
return self._update_
File "/usr/lib/
52, in tree_write_locked
return unbound(self, *args, **kwargs)
File "/usr/lib/
2173, in _update_tree
change_
File "/usr/lib/
merge_inner
return merger.do_merge()
File "/usr/lib/
do_merge
self.
File "/usr/lib/
_do_merge_to
merge.
File "/usr/lib/
do_merge
self.
File "/usr/lib/
_compute_transform
entries = self._entries3()
File "/usr/lib/
_entries3
if file_id in self.this_
File "/usr/lib/
426, in _get_inventory
self.
File "/usr/lib/
371, in _generate_inventory
% (name_unicode,))
AssertionError: name u'dirname' already in parent
1.046 return code 4
The dirname is a single name (not a path). i.e. no slashes. The only directory in the branch with that name is not a root directory.
bzr pull just said that the branch was up to date. bzr log shows the most recent revision as was also on the server. In the end I told him to rename the checkout for later examination and just check it out again, which he did without any problems.
He is running bzr 1.7.1.
I have the same trouble with bzr 1.8.
Traceback (most recent call last): commands. pyo", line 849, in run_bzr_ catch_errors commands. pyo", line 795, in run_bzr commands. pyo", line 495, in run_argv_aliases builtins. pyo", line 715, in run decorators. pyo", line 192, in write_locked workingtree. pyo", line 1547, in pull decorators. pyo", line 138, in read_locked workingtree_ 4.pyo", line 430, in _get_inventory workingtree_ 4.pyo", line 366, in _generate_inventory
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\merge.pyo", line 1507, in merge_inner
File "bzrlib\merge.pyo", line 484, in do_merge
File "bzrlib\merge.pyo", line 456, in _do_merge_to
File "bzrlib\merge.pyo", line 595, in do_merge
File "bzrlib\merge.pyo", line 626, in _compute_transform
File "bzrlib\merge.pyo", line 676, in _entries3
File "bzrlib\
File "bzrlib\tree.pyo", line 202, in iter_entries_by_dir
File "bzrlib\
File "bzrlib\
AssertionError: name u'.project.THIS' already in parent