You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Eilein Grasp <bl...@digiverse.net> on 2005/03/07 01:02:30 UTC
Metadata properties searching
<html><body>Is there a way I can search for items in my repository by subversion properties (metadata) ?<br>
<br> <br><hr>the blog of a Canadian geek
<br>http://www.moonrocket.ca<br></body></html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Metadata properties searching
Posted by Andrew Thompson <su...@aktzero.com>.
Quoting Eilein Grasp <bl...@digiverse.net>:
> Is there a way I can search for items in my repository by subversion
> properties (metadata) ?
Like this?
athompson@bebop:~$ svn propget svn:ignore -R file:///svn/athompson/
file:///svn/athompson/trunk/src - moat
file:///svn/athompson/trunk/texts - *.swp
bookmarks.bak
file:///svn/athompson/trunk/src/java - *.class
*.swp
file:///svn/athompson/trunk - tmp
RECYCLER
Recycled
The output is a little messy and might need to be processed depending
on if your
property is more than one line.
--
Andrew Thompson
http://aktzero.com/
Interested in hosted SVN repositories? Email me, let's talk...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
AW: Metadata properties searching
Posted by Georg Viehöver <vi...@sigma-c.com>.
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
efficient.
>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.
and
>The svn subcommands proplist and propget both allow the -R (recursive)
flag.
>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.
Georg
_____
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
http://www.moonrocket.ca
--------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional
commands, e-mail: users-help@subversion.tigris.org