views:

1252

answers:

4

How do I ignore all files within a folder under source control?

/project/published/ (folder I want to keep)

/project/published/some_file(s) (files/folders i don't want)

More Details: Currently when I go to commit changes for my project I see allot of files that I don't want to. They are files that get published to a folder and i don't need them under source control. I won't ever know the names of these files as they are chosen by users.

I tried to use the property: svn:ignore

with value: published/*

but that did not work. Any ideas?

Thanks

+1  A: 

Perhaps this can help you: in the Commit dialog there's a check box to "Show unversioned files". It's not the same as telling Tortoise/SVN to ignore them but might just do the trick. HTH

FOR
I've been using that approach and it's been a hassle. If I have that unchecked I sometimes neglect to add new files to source.
+1  A: 

I'm guessing you tried:

svn propset svn:ignore published/*

svn propset needs the value and target seperated:

svn propset svn:ignore [value] [target]

...so try:

svn propset svn:ignore "*" published

(Don't forget the quotes.)

Jonathan Lonowski
Your suggestion let me to apply the property directly to the folder as I wasn't using the command line to set the property but using TortoiseSVN's UI instead.
+2  A: 

I've found a solution. If I set the svn:ignore property directly on the folder I want to keep (published) and set it's value to * then it does what I want. I would have liked to add this property to the project root but this works too.

prop - svn:ignore

value - *

Thanks for the suggestions.

A: 

u just click right on the "published" folder,

select TortoiseSVN->Properties,

Add "New" ,

"Properties name:" -> "svn:ignore"
"Properties value:" -> "*"

Then it would work fine.

Shiro