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

Property based filtering

From: Janusz Kwasny <januszk_at_softcomputer.com>
Date: Thu, 19 Aug 2010 14:23:53 +0000


I've found some old posts regarding that issue but it doesn't seem it ever made it to a development evaluation. I'd like to see new feature in Subversion that would allow filtering files based on their properties. For example let's assume that option name is --filter and we are working on a project with lots of files. Some of those files have custom property filetype set to a value 'server', some to 'client'.

Running the following command:

svn checkout --filter filetype:client
would check out all the files that have property filetype=client

Filter could also accept ! operator:

svn checkout --filter !filetype:client
would check out all files that don't have property filetype set or that property is different then client.

There may be a number of situations when such filtering would be useful. In our organization we need it for client/server applications where each part is designed for different platform. With projects using tens of thousands of files making full checkouts on each platform introduces unnecessary delays. We cannot use path based filtering because files that belong to client and server part can share the same subfolders and there even may be common files that are used (thus should be checked out) on both platforms.

Let me know what you think about that.

Thank you,
Janusz Kwasny
Received on 2010-08-19 20:43:41 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.