Showing posts with label Subversion. Show all posts
Showing posts with label Subversion. Show all posts

2014-09-16

svn:global-ignores

After struggling for some time in making sure that the svn:ignore property is applied recursively, I've recently realized that Subversion 1.8.x introduced the svn:global-ignores, which makes sure you just need to set a property in the root folder.
It uses the same values as svn:ignore, and will work mixed with it (values are appended). By the way, currently TortoiseSVN (v 1.8.7) doesn't work at 100% (not all folders and files are ignored in the first commit), but probably it will be fixed in the future.

2012-10-09

svn:ignore for Visual Studio

Similar to other source control systems, you can add an ignore list of files that should not be under source control. In subversion, this is the svn:ignore property. If you are using Visual Studio and the VisualSVN plugin, this can be achieved in the following way:

  • Right-click the solution > VisualSVN > Properties...
  • Click on New... > Advanced
    • In the Property name drop-down select svn:ignore
    • In the Property value text box put the list of expressions you want to ignore, separated by the space character.
Here is an example (work in progress, probably this will have the same content as my .gitignore):

*.suo
*.user
*.dbmdl
*.resharper
aspnet_client
thumbs.db
bin
Bin
obj
Obj
TestResults
debug
Debug
release
Release


You'll end up with something like this (TortoiseSVN):


Edit (2014-02-20)

Fixed an error in my example, each entry must be in a single line.

Update (2014-05-21)

Updated list.