Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get recursive list of svn:ignore'd files

Tags:

I have an existing project repo which I use for project A, and has some files and directories excluded from it using svn:ignore. I want to start another project (project B), in a new repo, with approximately the same files ignored in it.

How can I get a list of all files in the repo with svn:ignore set on them and the value of that property? I am using Ubuntu, so sed and grep away if that helps.

Thanks, Joe

like image 530
Joe Mastey Avatar asked Apr 05 '10 16:04

Joe Mastey


People also ask

How do I ignore bin and obj folder in svn?

If you right click on a single unversioned file, and select the command TortoiseSVN → Add to Ignore List from the context menu, a submenu appears allowing you to select just that file, or all files with the same extension.

How do I ignore target folder in svn?

To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target . svn propedit svn:ignore .


2 Answers

svn propget -R svn:ignore

Output looks like:

path/to/dir1 - *.exe
*~

path/to/dir2 - #*

path/to/dir3 - ...etc...
like image 117
Dave Bacher Avatar answered Nov 08 '22 09:11

Dave Bacher


svn status --no-ignore | grep "I  "
like image 20
mafonya Avatar answered Nov 08 '22 09:11

mafonya