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

Re: svn-clean

From: Scott Lamb <slamb_at_slamb.org>
Date: 2002-08-15 22:44:35 CEST

Wilfredo Sanchez wrote:
> Since "make distclean" craps out more often than not, and I wanted to
> get rid of all files which aren't in the repository, I wrote the
> following script to nuke anything not managed by SVN. Now, I'm cheating
> because I'm poking in .svn/entries, which I'd call a no-no.
> Better would be to use "svn status", but that craps out if I'm off of
> the network. A bummer, since the information I want is available
> locally. Is there another way?

"svn status" shouldn't use the network unless you use the -u argument.
Try something like this (untested):

     $ svn status --no-ignore | egrep '^\?' | cut -c8- | xargs rm -f

It will break if filenames contain spaces, but in the Subversion
repository they don't.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 15 22:45:17 2002

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

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