[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: Max Bowsher <maxb_at_ukf.net>
Date: 2003-06-19 01:34:41 CEST

Greg Stein wrote:
> 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.

You are correct of course. My alternative to sed is "cut -c 8-".

The short option does have an application in viewing the cleanness of a
directory, but this is a less common task, so I am satisfied with a scripted
solution.

Max.

---------------------------------------------------------------------
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:35:39 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.