[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: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2007-10-22 20:26:44 CEST

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?

Karl Fogel <kfogel@red-bean.com> writes:

> Will the use of '*' as the code for out-of-date be difficult with some
> shells (even on Windows)?

No, even cmd.exe supports quoting.

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? I don't really like it.
I expect --filter M to show me all modifications; I don't want to
have to say --filter Mm. And adding a third character that means
both is even worse.

> 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

> 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 ;->.

Eric Gillespie <*> epg@pretzelnet.org

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 22 20:27:00 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.