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

Re: Cleaning up work area with svn

From: Peter S. Housel <housel_at_acm.org>
Date: 2004-04-09 01:28:09 CEST

At Thu, 8 Apr 2004 17:01:59 -0600, Michael W Thelen wrote:
> * Bas Mevissen <ml@basmevissen.nl> [2004-04-08 16:27]:
> > There seems to be no command to clean up a working area with
> > svn. By that I mean that there is no command to remove all files
> > from a work area that are not under version control.
> >
> > The use of it? Well, if you've made changes to a project, you want
> > to see if you have all files added to svn before
> > committing. Otherwise, people might miss files when they checkout.
> If you have files in your working directory that are not under revision
> control, 'svn status' will show those with a ? in the first column. This
> addresses the problem of knowing whether a file has been added before
> committing... but I wasn't clear on what it means to "clean up" the
> directory. Would you like the files to be automatically deleted, or
> automatically added to revision control?

If the former, I use the following "svnpurge" script:

svn st --no-ignore \
    | perl -n -e 'if(/^[I?].{6}(.*)$/) { print "$1\n"; unlink $1; }'

Perhaps this could be added to contrib/client-side.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 9 01:28:26 2004

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.