Can't add file in subdir if changing subdir from file to dir (traceback if entry.name in parent.children)
Bug #205636 reported by
Vincent Ladeuil
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Martin Pool | ||
bzr Upload plugin |
Won't Fix
|
High
|
Unassigned |
Bug Description
This may or not be related to #192859 or #173944.
Doing (simplified to exhibit the bug):
rm -fr bug
mkdir bug
cd bug
bzr init .
echo foo > mutable
bzr add mutable
bzr commit -m 'add mutable as a file'
rm mutable
mkdir mutable
# The point is to change a file into a dir
echo bar > mutable/file
# The following fails with a traceback
bzr add mutable/file
# But ! Doing the following works
bzr st
bzr add mutable/file
bzr commit -m 'add file under mutable'
Shell script attached.
Changed in bzr: | |
importance: | Undecided → High |
To post a comment you must log in.
I should have mentioned that I encounter the problem when using bzrlib, not bzr from the command line.
I.e. there is an ugly time dependency hidden somewhere.