Note that it doesn't matter if there are other files /dirs in the directory, but it only triggers on a newly added directory. If you do:
bzr mkdir a/a bzr mv a/a/ a/d bzr commit -m 2 bzr mv a/d a/a
it works just fine.
So it is a bug in how we handle entries that are 'added' and renaming them to an earlier path.
Note that it doesn't matter if there are other files /dirs in the directory, but it only triggers on a newly added directory. If you do:
bzr mkdir a/a
bzr mv a/a/ a/d
bzr commit -m 2
bzr mv a/d a/a
it works just fine.
So it is a bug in how we handle entries that are 'added' and renaming them to an earlier path.