svnsvnignoresvn-propset

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?


Solution

  • Use svn propedit instead of svn propset, and put each pattern on a separate line in the editor window.

    Also take a look at setting global-ignores in your config for files and directories that should be ignored in any working copy. That's usually a better way to exclude debug and binary output from directories containing lots of projects.