views:

28

answers:

1

Hi,

We use subversion to keep track of our code, just sharing code between us two. However we encounter a problem when we both add or remove file at the same time before the next commit. It seems that whenever we mess with Groups & Files, project.pbxproj under the project package will be modified and subversion cannot take care of that. As a result the project cannot be opened.

My guess is that project.pbxproj keep track of how groups and files are arranged. How do I make this work under Subversion? It is a text file, but somehow it's doesn't seem to be treated as such.

A: 

Firstly, is the .pbxproj file getting corrupted, or is it that the changes you make are not correctly reflected in it? (ie if you remove a file, but do not have the update in the .pbxproj file, does it refuse to load?)

If the .pbxproj file is text, you can tell subversion to store it as such by setting the svn:minme-type property.

Setting it to a text type will give you better merging, so whoever commits first save his changes, then when the other updates his working copy, the changes will be merged into the file. You should review changes when a merge occurs, even though subversion is good at this, its only a computer process and will not do what you expected occasionally.

gbjbaanb
It looks to me like getting corrupted at least in one of the options. It offers three options, not in my exact wording but (1) keep local changes, (2) overwrite local file with repository version, and (3) close xcode. If we close the Xcode it would not open, we had to manually delete it and update stuff from the command line. Then Xcode will open with the file hierarchy of the repository.
huggie
that sounds more like the merge tool kicking in and telling you it cannot perform the merge as there are conflicts (ie you both changed the same line - the tool can't know which line to use). closing xcode and try with TortoiseSVN on the file instead. Also set it to a text mime type and you will have better merging support.
gbjbaanb