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

Re: Using properties

From: Mark Phippard <markphip_at_gmail.com>
Date: Wed, 3 Dec 2008 10:47:18 -0500

On Wed, Dec 3, 2008 at 10:32 AM, Ilan Yaniv <Ilan.Yaniv_at_timetoknow.org> wrote:

> I want to be able to create 2 properties:
>
> - Flower.
>
> - Yellow.
>
> And then I will be able, in a single path to locate all the files that has
> the two properties flower and tree, even if the file name is 1235.jpg.
>
> 1) Can I do that?

Yes. You might make the property name "Image Type" with a value of
"Flower" and "Image Color" with a value of "Yellow". There are a lot
of ways to do this.

> 2) Should I use that? I read that searchability is hard. Why?

Subversion does not provide anything to help you do the searching.
You cannot ask Subversion for all files with a certain property. You
can get the properties yourself in a script and build this sort of
tool though.

> 3) In case I use properties – not per revision but per file would it help
> the searchability?

The sort of properties you are talking about would only be versioned
file properties. You would not consider revision properties for this.
 The feature is exactly for the sort of thing you want to do. The
issue is that there are not additional indexes and tools that let you
do the kind of searching you want to do. That said, the raw tools are
there for you to build this.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=978937
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-03 16:57:04 CET

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.