tags:

views:

77

answers:

2

Is there a way to setup a global list of Ignores for a SVN Repository or for the SVN Client on the PC?

The only reason I'm using tools like Tortoise/Ankh/VisualSVN is because I want to only check in the files I need without all the bin/obj/Resharper stuff.

I'm spoiled by .gitignore and .hgignore which I just copy to a repository and then use "git commit -a" without having to care about checking in junk.

I know I can manually set it, but that's tedious to do and I think it had to be applied to every new folder that gets created as well.

Using SVN under Windows if that matters

+4  A: 

On my Windows install of Subversion, there is a file in c:\Documents and Settings\<username>\.subversion\config that contains a global configuration for Subversion (your location may vary). In the [miscellany] section is a global-ignores parameter which you can use to set up globally ignored filename patterns.

The Runtime Configuration Area section of the Subversion book has more information, including how to set up such global configuration parameters in the registry if you need to.

Greg Hewgill
It's in %AppData%\Subversion for me.
Joey
Cool, that works. I'd still prefer per repository, but this doesn't require propedit so it's better IMHO.
Michael Stum
+2  A: 

Yeah there is a way:

svn propedit svn:ignore ./some_path

To get further info check this website: SVN ignoring files. Then it should be an a repository global ignoring list. So you have to do it only once.. Or maybe this article could also be interesting: Tortoise global ignore vs svn ignore

Prine
Would this also ignore files in paths below some_path? I don't like propedit as this is "magic" (it's hidden in the .svn folder among all the other data) compared to real files on the file system, but if it's the only way to get per-repository ignore then I could consider it.
Michael Stum