You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "H.M. Aamir Yaseen" <aa...@gmail.com> on 2006/06/28 08:09:33 UTC

Re: Metadata properties searching

Hi,
If someone may help in searching metadata properties.
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.xmlhave 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?


Kind Regards
Aamir Yaseen

Re: Metadata properties searching

Posted by Ryan Schmidt <su...@ryandesign.com>.
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