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

AW: Metadata properties searching

From: Georg Viehöver <viehoever_at_sigma-c.com>
Date: 2005-03-07 13:49:15 CET

I guess this is similar to a question that I posted some days ago:

>Hi all,


>Coming from the ClearCase world, I wonder if it is possible to query a
subversion repository for all files that have a certain property (it is a
one line >command that is fairly efficient even for 10000nds of files in
ClearCase). The use case that I am thinking about is to query subversion
which files have >been changed for a certain bug, attaching the bug number
as a property to all files that have been changed in the process of fixing
the bug.

>I think that looking at the changes for a certain transaction is probably
not sufficient: One bugfix may be done as a sequence of svn commits. Using
some >"find snv propget..." might be possible, but is certainly not

>Any ideas? Maybe I am missing some point?


The answers I received are

>I've used "svn propget -R svn:mime-type", and it seems to be adequately
efficient. Although I am using it on a WC. But "svn propget -R (property)

> <http://root/of/repository> http://root/of/repository" should work and
probably only does one round-trip to the server.


>The svn subcommands proplist and propget both allow the -R (recursive)

>I'm sure you could use this to get all of your desired files, perhaps
something like:

>svn propget {PROPNAME} -R [URL] | grep '{bug#}'

>And then use the cut command to extract the filenames.

>Or thereabouts...


While this is a possible approach, I still think it is fairly inefficiencent
if you have a large repository.




Von: Eilein Grasp [mailto:blackmath@digiverse.net]
Gesendet: Monday, March 07, 2005 2:03 AM
An: users@subversion.tigris.org
Betreff: Metadata properties searching

Is there a way I can search for items in my repository by subversion
properties (metadata) ?



the blog of a Canadian geek
--------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional
commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 7 18:31:38 2005

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.