tags:

views:

335

answers:

1

I see it is possible to view a list of properties set on every directory within an SVN repository using proplist and the -R flag (recursive) and -v flag (verbose):

svn proplist -Rv

This shows me all properties, such as svn:mime-type or svn:executable. I'm looking to filter this to just svn:ignore properties. I'm sure there is some way to pipe the result from this command through a shell command that would only show me the lines I'm interested in, but I can't figure out how to do it. As an example of the type of thing that would be most useful is some type of command like this (but this one doesn't work!).

svn proplist -Rv | grep "^  svn:ignore" | awk "{print \$1}"

I just don't know enough about shell commands like grep and awk to make this work for me. This just shows "svn:ignore" over and over again, but doesn't print out the directory path or contents of the svn:ignore property. Here is an example of the output from "svn proplist -Rv" that I'd like to grab, where 'cache' is the path and '*' is the value of the property.

Properties on 'cache':
  svn:ignore
    *

Can anyone help me with the above command and/or with a better way to view all svn:ignore properties in my respository? Thanks.

+4  A: 
svn pg -R svn:ignore .
Martin v. Löwis
Wow. So pretty. Thank you!
stereointeractive.com