Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create an ignore list of several items in SVN?

I'm creating an ignore list on a Windows machine using the following command line:

svn propset svn:ignore "bin" Fardis.Test

The directory tree structure is:

\src\
\src\Fardis.Test\
\src\Fardis.Test\bin\
\src\Fardis.Test\obj\

I'm running that command while my current directory is \src. This works fine, but I want to add another folder, \src\Fardis.Test\obj\ to the ignore list, but it fails. I tried the following:

svn propset svn:ignore "bin obj" Fardis.Test
svn propset svn:ignore "bin, obj" Fardis.Test
svn propset svn:ignore "bin; obj" Fardis.Test

After issuing which one of them, svn status shows that none of folders bin or obj are added to the ignore list.

How can I solve this?

like image 633
Afshar Mohebi Avatar asked Jun 16 '10 09:06

Afshar Mohebi


1 Answers

I usually create a .svnignore file. See svn:ignore Then do:

$ svn propset svn:ignore -F .svnignore .
  property 'svn:ignore' set on '.'

.svnignore:

*.pyc
*~

EDIT: I add the .svnignore to the repo also to keep track of it.

like image 71
spleeyah Avatar answered Nov 15 '22 05:11

spleeyah