[Merge] workingtree.walkdirs to support walking an empty directory
Marius Kruger
amanic at gmail.com
Wed May 2 06:22:41 BST 2007
Hi all,
While testing the 'bzr rm should delete the working file' patch
Martin caught the case where we want to delete an empty directory,
which failed because workingtree.walkdirs did not like it if we specify
a prefix which represents an empty directory. I changed that patch
to check if the directory is empty before calling walkdirs.
I do consider this a bug in walkdirs, so here is a proper fix
complete with tests. This is aimed at v0.17+ since there
isn't many users of walkdirs, but could be useful for
future users of it.
regards
marius
--
I don't trust Revision Control Systems with less than 6600 unit tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: workingtree.walk_empty_dir.patch
Type: application/octet-stream
Size: 11541 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070502/0f31362f/attachment.obj
More information about the bazaar
mailing list