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

Re: Script to clean out files not in Subversion ...

From: Christian Unger <christian.unger_at_mac.com>
Date: Wed, 10 Dec 2008 20:22:43 +0100

svn st | grep ^?

cu
christian unger

On 10.12.2008, at 20:07, Parrish, Ken wrote:

> I would like to create a script that will scan a Subversion working
> directory and detect all files and directories which are NOT
> presently under Subversion control. The files and directories will
> then be deleted so as to return the state of the working directory
> to that of a recently ‘checkout’.
>
> I would like to avoid having to delete the entire directory tree and
> then execute a Subversion ‘checkout’ or ‘update’ on the directory
> due to performance and network issues.
>
> I have various scripting tools available to handle the job, but need
> a way to easily detect which files to remove.
>
> Thanks for your help.
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=982448

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

  • application/pkcs7-signature attachment: smime.p7s
Received on 2008-12-10 20:53:07 CET

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.