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

Re: Removing working copy, leaving other files untouched

From: Stephane Bortzmeyer <bortzmeyer_at_nic.fr>
Date: Thu, 3 Jul 2008 14:37:08 +0200

On Wed, Jul 02, 2008 at 09:46:14PM +0200,
 Jørn Wildt <jw_at_fjeldgruppen.dk> wrote
 a message of 54 lines which said:

> Is it possible to remove all local files that belongs to SVN -
> without removing non-SVN files?

Untested (backup first!):

svn status -v | awk '!/^\?/ {print $4}' | xargs rm -f

The first command displays all the files, awk filters out the non-SVN
files (they are displayed with a ? by svn status) and the last deletes
the SVN files.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-03 14:38:22 CEST

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.