如何查看使用svn设置所有忽略的模式:在svn存储库递归忽略? [英] How do I view all ignored patterns set with svn:ignore recursively in an svn repository?

查看:1604
本文介绍了如何查看使用svn设置所有忽略的模式:在svn存储库递归忽略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到它是可以查看使用proplist这样和-R标志(递归)和-v标志(详细)一个SVN存储库中的每个目录设置的属性的列表:

 的svn proplist这样-rv

这表明我的所有属性,例如svn:mime-type属性或svn:可执行文件。我期待这个过滤出的svn:忽略属性。我敢肯定有一些方法来管从通过shell命令,只会告诉我,我感兴趣的行这个命令的结果,但我无法弄清楚如何做到这一点。由于这将是最有用的东西类型的一个例子是某种类型的像这样的命令(但这一个不工作!)。

 的svn proplist这样-rv | grep的^的svn:忽略| awk的{打印\\ $ 1}

我只是不知道有足够的了解,如grep shell命令和awk,使这项工作对我来说。这恰恰说明了SVN:忽略了一遍又一遍,但不会打印出的目录路径或svn的内容:忽略属性。下面是从的svn proplist这样-rv我想抓住,其中高速缓存是路径和输出的一个例子*是属性的值。

 属性上的缓存:
  SVN:忽略
    *

谁能帮我用上面的命令和/或更好的方式来查看所有的svn:忽略我的程序存储库属性?谢谢你。


解决方案

  SVN PG -R的svn:忽视。

...与皮克是用于 propget子 A速记符号,所以这等于...

 的svn propget子-R的svn:忽视。

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.

解决方案

svn pg -R svn:ignore .

...with pg being a shorthand notation for propget, so this is equal to...

svn propget -R svn:ignore .

这篇关于如何查看使用svn设置所有忽略的模式:在svn存储库递归忽略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆