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

Re: [PATCH] New feature: status --filter

From: Jack Repenning <jrepenning_at_collab.net>
Date: 2007-10-23 06:22:57 CEST

On Oct 22, 2007, at 11:56 PM, Eric Gillespie wrote:

> Roo <roo.watt@gmail.com> writes:
>
>> Is the output of of the "svn status --filter" compatible with
>> xargs or
>> does it still print the leading status char (like ? or M etc)?
>
> This patch doesn't change the format at all. I've been trying to
> think of a UI for printing only the filenames, but haven't come
> up with anything nice yet. It's too bad -q is already taken.
> --summarize is available, but I'm not sure it's right.
>
> Suggestions, anyone?

"--terse"?

> Jack Repenning <jrepenning@collab.net> writes:
>
>> I think this does not distinguish the information encoded in the
>> status output column, say the difference between "file modified" and
>> "props modified." Looking over the current list, I only spot
>> "Modified"/"Conflicted" for "item"/"props" as ambiguous in this way.
>> (Well, " " is widely ambiguous, but I guess we can live with that
>> ;-). Might it be better to use lower-case letters for most status
>> types, but upper case to mean "the props"? In man-page summary
>> terms, "acdimrx?!~CMl+skotb"?
>
> Is it worth the additional complexity?

Maybe not.

>> The help note gives little help in driving the thing. Looks like I
>> can mix a bunch of filter letters, like
>> svn stat --filter MAC
>> which doesn't surprise me (that's how I do it in my little shell
>> script ;-), but I suspect this is not so obvious to the intended
>> audience of non-shell-hackers).
>
> Yeah. How about:
>
> --filter ARG : only show items matching the list of
> status codes
> e.g. "M" for just modified, "C*" for
> modified or
> out-of-date, and so on

Much better!

>> Negative filters? As an historical observation, the thing that
>> actually made me write my own little hack is that "S"witched shows in
>> default and quiet modes. To my taste, that's wrong: nothing's
>> modified. This disagreement is not helped by the fact that our
>> product build environment makes a around four dozen "S"witched
>> directories. So I built in a negative filter, meaning "show
>> everything but the given ARG types." It has the obvious syntax;
>> expressed into the proposed syntax, mine actually defaults to:
>> svn stat --filter -S
>
> Good idea. I'll add this in a follow-up change; it looks like no
> one is objecting to this one ;->.

Good enough.

-==-
Jack Repenning
Chief Technology Officer
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
office: +1 650.228.2562
mobile: +1 408.835.8090
raindance: +1 877.326.2337, x844.7461
aim: jackrepenning
skype: jrepenning

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 23 06:23:11 2007

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.