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

Re: cvspurge subversio equivalent

From: Helge Jensen <helge.jensen_at_slog.dk>
Date: 2004-09-08 23:03:30 CEST

Edvard Majakari wrote:
> Hi folks,
>
> You'd imagine this is in the FAQ. Oftentimes when I wanted to make sure
> there's no cruft lingering around eg. after building a system, I used to
> run 'cvspurge', which removed every file from current dir and subdirs not
> known to CVS. I can't find equivalent in Subversion after reading the
> manual.

You could use

   svn status --no-ignore | grep -e '^[I\?]' | cut -c 8-

to get a list of those files and directories that SVN doesn't know or is
ignoring.

Then you could further pipe that into

   xargs rm -r

But you'd need to think a bit about esacping whitespace if the
file-names contain such. especially newlines would give you a hard time :)

-- 
Helge
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 8 23:36:21 2004

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.