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

Re: svn status: filter on file extension

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Tue, 19 Jan 2010 09:55:03 -0500

Niel De Clerk wrote:
> Good Day
>
> I'd like to know if there is a way to make a SVN STATUS command
> recursive while filtering the files using a wildcard?
>
> I need this purely for performance reasons. I'm guessing that the
> amount of data that the repository need to pass back (via a rather slow
> network) will be less, and also that I'll save time when processing the
> results since I don't have to filter out lots of unneeded information.

Actually, the amount of data currently passed over the network for 'svn
status -u' is proportional to the amount of *change* in the tree since the
working copy was last updated, not to the size of the tree itself, and is
optimized for directory comparisons as opposed to comparisons of individual
file revisions.h

> However, I'm often only interested in the files with a specific
> extension (*.kb). So I've tried to use
>
> svn status --verbose --show-updates *.kb
>
> But this only returns the .kb files found in the current directory (i.e.
> non-recursive)
>
> Your assistance will be greatly appreciated.

Yeah, this is pretty much where 'grep' comes into the picture. :-)

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2010-01-19 15:55:58 CET

This is an archived mail posted to the Subversion Users mailing list.