How many log directories do you have?

The question in the title pertains if you use kdesvn-build. kdesvn-build creates a separate log directory for every single run it makes. If you’ve done a lot of kdesvn-build runs and you’ve never manually cleaned out your log directory you’ve probably got quite a few hundreds of log bundles.

Someone finally noticed and filed a bug. Attached to that bug is a patch I’ve created to remove all log directories but the ones referenced in the latest kdesvn-build run for a given module. I consider this the correct behavior so at this point I’m not looking to make it optional or require a magic incantation to Do the Right Thing.

So, if you use kdesvn-build I’d recommend trying out the patch (always use –pretend first!). If you want to skip straight to pruning directories you can use a command like kdesvn-build --no-svn --no-build --no-install kdelibs (replace kdelibs with a module in your rc file). Also, does anyone have a reason to retain more log directories than those in log/latest? (And has a reason that you can’t manually save the directory? :)

If not this will be probably the last feature I add before I make a separate release of kdesvn-build. I have duty tomorrow so it will be awhile before I can respond to comments but feel free to leave them anyways!