blog.jj5.net (2003 to 2005)

Clearing out a copy of a subversion working copy

Tue Feb 1 09:02:00 UTC+1100 2005

Categories:

Sometimes things just go wrong.

Sometimes you can *feel* they are about to go wrong.

Sometimes you just want to take a copy of your working directory and put it somewhere for safe keeping for a little while.

Sometimes you want a little while to be longer.

When you want a little while to be longer you might like to get rid of the .svn cruft that came part and parcel with your xcopy.

To delete the .svn folders:

for /r . %I in (.svn) do @if exist "%I\." @rd "%I" /s /q

To see the .svn folders that exist:

for /r . %I in (.svn) do @if exist "%I\." @echo "%I"

John.


Copyright © 2003-2005 John Elliot