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

Re: Metadata properties searching

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-28 19:11:23 CEST

On Jun 28, 2006, at 10:09, H.M. Aamir Yaseen wrote:

> I wan to search files/folders having given metadata properties /
> attributes.
> I have tried following options but unable to succeed, as i am new
> to SVN, so i will def appriciate if someone can look at my effort
> and guide me where i am making miktakes.
>
>
>
> C:\svn\myproj>svn propget svn:ignore -R file:///c:/svn/myproj/
> Above command returns nothing, where as file:///c:/svn/myproj/
> plugin.xml have 4 attributes attached.
>
>
> C:\svn\myproj>svn propget svn:ignore -R file:///c:/svn/myproj/
> plugin.xml
> Above I also tried above command, but i did not get anything.
>
> Note:
> file:///c:/svn/myproj has also some attributes attached as well.
>
> Please guide me how can i retriev list of all these attributes
> recursively?

You know, I didn't realize that "svn propget" (and "svn proplist", as
I see) had a recursive option. But they do. And it seems to work for me.

To see all the PNG images in the Subversion web site:

Command:

svn propget svn:mime-type -R \
http://svn.collab.net/repos/svn/trunk/www/ \
| grep image/png | sort

Output:

[snip]/www/images/bsddaemon.png - image/png
[snip]/www/images/i5os.png - image/png
[snip]/www/images/mandrake.png - image/png
[snip]/www/images/redhat.png - image/png
[snip]/www/images/src-pkg.png - image/png
[snip]/www/images/suse.png - image/png
[snip]/www/images/svn-dav-securityspace-survey.png - image/png
[snip]/www/images/win32.png - image/png
[snip]/www/subversion-diagram.png - image/png
[snip]/www/subversion_logo-200x173.png - image/png
[snip]/www/subversion_logo-384x332.png - image/png
[snip]/www/subversion_logo_hor-468x64.png - image/png

To see all the properties and their values on the contributed hook
scripts:

Command:

svn proplist -v -R \
http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/

Output:

Properties on '[snip]/hook-scripts/pre-lock-require-needs-lock.py':
   svn:executable : *
   svn:eol-style : native
Properties on '[snip]/hook-scripts/case-insensitive.py':
   svn:executable : *
Properties on '[snip]/hook-scripts/detect-merge-conflicts.sh':
   svn:executable : *
Properties on '[snip]/hook-scripts/enforcer/enforcer':
   svn:executable : *
Properties on '[snip]/hook-scripts/svn2rss.py':
   svn:executable : *
Properties on '[snip]/hook-scripts/check-case-insensitive.py':
   svn:executable : *
   svn:keywords : HeadURL LastChangedBy LastChangedDate
LastChangedRevision
   svn:eol-style : native
Properties on '[snip]/hook-scripts/check-mime-type.pl':
   svn:executable : *
Properties on '[snip]/hook-scripts/commit-block-joke.py':
   svn:executable : *
   svn:eol-style : native
Properties on '[snip]/hook-scripts/README':
   svn:keywords : Id
   svn:eol-style : native
Properties on '[snip]/hook-scripts/check-case-insensitive.pl':
   svn:executable : *
   svn:keywords : HeadURL LastChangedBy LastChangedDate
LastChangedRevision
   svn:eol-style : native
Properties on '[snip]/hook-scripts/pre-commit-check.py':
   svn:executable : *
   svn:eol-style : native

As to why it's not working for you:

> C:\svn\myproj>svn propget svn:ignore -R file:///c:/svn/myproj/
> Above command returns nothing, where as file:///c:/svn/myproj/
> plugin.xml have 4 attributes attached.

What do you mean, it has 4 attributes? You're getting specifically
the "svn:ignore" property. If you wanted to see other properties, you
would have to put them there instead of "svn:ignore", or try "svn
proplist -v" instead of "svn propget".

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 28 19:13:50 2006

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.