[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: Windows command to delete all .svn dirs

From: Brian Erickson <erickson_at_BAUERCONTROLS.com>
Date: 2007-06-22 16:09:28 CEST

> I need to get rid of a gazillion little .svn directories in my (very
> large) project. Does anyone know of a Windows command to do it?

I routinely do things on the entire directory tree. So I've created a
batch file called sweep.bat. Contents follow...
@echo off
if .%1 == . goto usage
@cd
@cmd /c %1 %2 %3 %4 %5 %6 %7 %8 %9
@for /D %%I in (*.*) do (if /I %%I neq .svn (@cd %%I & @call %0 %1 %2 %3
%4 %5 %6 %7 %8 %9 & @cd .. ))
goto exit

:usage
@echo/
@echo Usage: %0 command
@echo/
@echo Where:
@echo command: Command to execute in each folder
@echo/
goto exit

:exit

Then, just sweep rd .svn /s/q. Notice the batch file does not recurse
into the .svn folder...

Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 22 16:11:27 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.