开发者

How do I list a Subversion repository's ignore settings?

I ha开发者_Python百科ve an SVN repository I set up a long time ago. I don't remember exactly what files I specified to be ignored, and I can't find documentation on how to display the ignore settings I set.

How can I find these settings?

This is on my CentOS server.


List all properties recursively on all files:

svn proplist -v -R [TARGET] 

You could also send the output in a file to find any svn:ignore property:

svn proplist -v -R [TARGET] > file.log


svn proplist -v -R mylocalfolder/ | grep svn:ignore -B 1

This is your answer dunxd. Left hand side will list all props. Right hand side grep will filter them.


Use:

svn pg -R svn:ignore .

See Stack Overflow question How do I view all ignored patterns set with svn:ignore recursively in an SVN repository?

This shows the relative path with all files ignored by SVN in a working copy of a folder structure. It shows everything recursively.


If it is Windows and you are using TortoiseSVN, then right-click on a folder of the working copy, go to the Subversion tab and click on Properties.


Another way to do it I found after prompting from other answers is to edit the proplist as follows:

svn propedit svn:ignore .

That opens a text editor with the ignore settings for the specified directory (in the above example this is the current directory indicated by .)


Calling svn proplist just prints what is defined but not how. To get additional information, use

svn proplist -v

which displays additional information (i.e. the contents of the properties).


The list of ignored files is stored in a property. Use svn proplist to show the properties of a directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜