I ran into this one yesterday. This is with XCode 2.1. I'll also file a bug via ADC but I felt it worth mentioning here just in case anybody has any feedback.
Summary: I created a new resource under the default US English locale and added it to CVS. The NIB folder thus had a CVS folder within it. I then right clicked on the NIB file in XCode, choose "Get Info" and from the General tab, clicked the "Add Localization" button to create a French localization for the NIB file. This created a duplicate of the NIB file under the French.lproj folder.
However it also duplicated the CVS folder without changing the Repository file setting. Thus both the English and French NIB files were mapped to the same path on the CVS repository.
This is easily reproducible. Had I not caught this before committing, the new NIB localisation changes would have overwritten the original NIB changes. I've already been bitten once by inadvertently copying a NIB folder with an embedded CVS folder from one project to another so I tend to be on my guard here.
Repro steps: 1. Pick any project where the NIB files are under CVS. 2. Create a new localisation of one of the NIB files. 3. Open Terminal and drill down into the NIB file folder and examine the CVS/Repository file. 4. Note that the original repository mapping is carried over.
Expectation: I would expect XCode to ignore the CVS folder when creating additional localisations by copying the original NIB folder.
- Steve
|