merge then revert doesn't fully delete directories? (bzr 2.1.4)

John Arbash Meinel john at
Fri Feb 3 08:56:34 UTC 2012

Hash: SHA1

On 2/3/2012 1:24 AM, Chris Hecker wrote:
> I have branches A and B.  A has been merged into B before, with
> some directories deleted in B.  If B/foo was deleted, but
> A/foo/bar.c changes, and then I merge A->B then on the merge bzr
> freaks out with conflicts and creates B/foo/bar.c.  Then, I bzr
> revert foo in B and instead of just completely toasting the dir, it
> kills the files (all .OTHER), but errors on any nested directories
> with:
> Conflict: can't delete foo/bar/baz because it is not empty.  Not
> deleting.
> It looks like if it just worked from leaves to root it would be
> fine, but it finds the child dirs before it kills them.
> This is with bzr 2.1.4, so maybe this has been fixed?
> Chris
> PS.  It's actually slightly more subtle than this because of the
> way I created the two branches, but I don't think that matters.

Are you sure there aren't other files in the directory, such as
ignored files/build products etc?


Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla -


More information about the bazaar mailing list