svn:ignore not ignoring xcuserdata

Viewed 6320

I am using the svn:ignore property for the first time, so I may be misunderstanding something.

I am working on an iOS application. I have an Xcode project and I want to ignore the xcuserdata folder. Using the Mac Terminal application, I go to the root of my svn repository and try to ignore the folder using:

svn propset svn:ignore path/to/my/folder/MyProject.xcodeproj/xcuserdata .

If I check the svn:ignore property using:

svn propedit svn:ignore .

I see:

path/to/my/folder/MyProject.xcodeproj/xcuserdatata

I have committed and updated, but I do an svn status, I still see the folder with a ? mark beside it. Does anyone know what I'm doing wrong? I am using svn version 1.6.17 (r1128011).


Edited to add that my question seems similar to this one: SVN just won't ignore a folder, despite propset svn:ignore, but in my case none of the files in the folder I want to ignore seem to be added to svn, nor is the folder that I want to ignore added to svn.

2 Answers

There are a couple of ways to fix this globally. One is to edit subversion's config file located at ~/.subversion/config. Look for the line for global-ignores, uncomment it and change it to xcuserdata, like this

global-ignores = xcuserdata

Save that and svn status will no longer report xcuserdata folders. That makes the change on your local machine and it will only affect you. To make it on the repository itself so that it affects everybody, navigate to the root of your source tree and use the global-ignores property, like this

svn propset svn:global-ignores xcuserdata .

Then commit the change to make it active.

Related