Add missing empty directories in .svn
Fix errors like
svn: Your .svn/text-base directory may be missing or corrupt; run 'svn cleanup' and try again
svn: Can't open file 'blabla/.svn/text-base/entries': No such file or directory
svn: Your .svn/text-base directory may be missing or corrupt; run 'svn cleanup' and try again
svn: Can't open file 'blabla/.svn/text-base/entries': No such file or directory
require 'pathname' def recurse(dir) for child in dir.children next unless child.directory? # ignore files next if child.basename.to_s == '.svn' # ignore .svn directory next unless (child + '.svn').exist? # ignore unadded directories text_base_dir = child + '.svn/text-base' # path to text-base dir next if text_base_dir.exist? # ignore existing text-base dirs text_base_dir.mkdir puts text_base_dir recurse child end end recurse Pathname.new('.')