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

Afshar Mohebi picture Afshar Mohebi · Jun 16, 2010 · Viewed 28.2k times · Source

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?

Answer

spleeyah picture spleeyah · Jun 16, 2010

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.