During a recent backup/restore cycle I’ve realized that I managed to omit the ‘tmp’ directories from within the ‘.svn’ directories, and because of this I can’t update my working copies. The problem goes away if I manually create a new, empty ‘tmp’ directory so I am looking for a way to recursively go through each folder, find ‘.svn’ ones and create a ‘tmp’ folder inside them.
As I don’t want to mess up the existing folders I thought I’s ask for help before I did something silly 🙂
Comments/suggestions will be appreciated, thanks!
PS: This is on a Windows machine so sadly Bash and other unix utilities are not present.
Depends on how many there are.
List the directories with
Edit dirs.bat in your editor of choice. Add
mdat the beginning of each line (since each line begins with something like C: you can use a fairly dumb editor – including notepad – to change C: tomd C:). Add /tmp to the end of each line (replace.svnwith.svn\tmp). Save. Run the BAT fileJob done.