On Apr 8, 2009, at 11:35 PM, Quincey Morris wrote: On Apr 8, 2009, at 23:17, Chris Espinosa wrote:
On Apr 8, 2009, at 11:11 PM, Quincey Morris wrote:
After adding a RTF file that contains an image (i.e. a RTFD package) to an Xcode project, I tried to add the file to the SVN repository for the project but I got an error message when committing the change. Is there any way to get Xcode to add the RTFD package to the repository properly and have it be able to commit changes subsequently?
It depends... what error message did you get?
I tried adding it again, and this time it got into the repository. (There's a new directory there called Release Notes.rtfd, which contains TXT.rtf and the PNG image file.)
Then I edited the RTFD in Xcode and tried to commit the change. The error message (in a sheet on the Xcode project window) is:
Error: 155005 (Working copy not locked; this is probably a bug, please report) Description: Commit failed (details follow): Error: 155005 (Working copy not locked; this is probably a bug, please report) Description: Directory '<path to where RTFD is>/Release Notes.rtfd/.svn' containing working copy admin area is missing
It looks like there's more of the error but it got truncated.
This is a general problem with Subversion and wrapper files. Applications like TextEdit (and Keynote and others) don't cotton to having subversion writing secret subdirectories inside their private document wrappers, so they (ahem) delete them when you save the document. That makes it not so much of a Subversion-managed file anymore.
Xcode's RTF editor uses the same framework as TextEdit does, so it has the same effect. Xcode manages better with its own wrappers (the .xcodeproj file, .nib files, etc.). In addition, editors that perform safe-save by writing the new copy, deleting the old one, and renaming the new one are generally incompatible with SCM systems.
Chris
|