tags:

views:

34

answers:

2

Hi,

I'm creating ignore list in a windows machinge using following:

svn propset svn:ignore "bin" Fardis.Test

directory structure is: src\ src\Fardis.Test\ src\Fardis.Test\bin\ src\Fardis.Test\obj\

I'm running that command while my currecnt dir is src. This works good but I want to add another more folder (obj) to ignore list, it fails. I tried follwings:

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 is added to ignore list.

How can I solve this?

A: 

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.

shambulator
+1  A: 

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.

Spleeyah
@Spleeyah: your solution seems greatly too. tnks.
afsharm