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

Re: Suggestion: Short option for --no-ignore (RESEND)

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-06-19 01:19:43 CEST

On Wed, Jun 18, 2003 at 07:49:00AM +0100, Max Bowsher wrote:
> Justin Erenkrantz wrote:
> > --On Monday, June 16, 2003 5:34 PM +0100 Max Bowsher <maxb@ukf.net> wrote:
> >
> >> I find that I use --no-ignore about 10 times more often than any other
> long
> >> option for any program (rough, but conservative estimate).
> >
> > What exactly are you doing that requires such usage of --no-ignore? --
> justin
>
> Checking for and/or purging generated files, to restore a tree to an
> as-checked-out state.
>
> It's not a *very* common action, but --no-ignore is the only long option of
> any program that I use on a regular basis.

It does seem that your use case is more amenable to scripting. One of our
design points was to make the output parseable. Seems like you'd want to
just write a little script kind of like:

#!/bin/sh
svn status --no-ignore | grep ^I | sed 's/. *//' | xargs rm

Need to deal with spaces in file names and the empty list. But it ought to
be pretty easily scripted into a quick little "wipe the directory for me"
script.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 19 01:15:40 2003

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.