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

Re: Windows command to delete all .svn dirs

From: Jared Hardy <jaredhardy_at_gmail.com>
Date: 2007-06-22 10:42:48 CEST

On 6/21/07, Chris <shef31@yahoo.com> wrote:
> del *.svn* /S /F
>
> does not work. I cannot figure out why.

I ran into the same problem, where I wanted to keep unversioned and
modified files locally, in the same path, and did not have TortoiseSVN
installed. This worked for me:

dir /s /b C:\Base\Path\*.svn > temp.txt
for /f %1 in (temp.txt) do (rmdir /s /q %1)
del temp.txt

After that I copied an .svn folder associated with empty
svn://server/repo/NULL to C:\Base\Path\, to keep future updates from
causing trouble. This was WinXP SP2. I'm not sure how well 'for'
commands do in other versions. Arnauld Van Muysewinkel's idea of
installing the Gnu Win tools, or MinGWin package, is another good idea
-- xargs comes in very handy, and both cp an rm are much better
behaved than [x]copy and del.

:) Jred

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 22 10:43:11 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.