• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subversion and XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subversion and XCode


  • Subject: Re: Subversion and XCode
  • From: Will Senn <email@hidden>
  • Date: Sat, 26 Nov 2005 00:13:53 -0600

Ryan,

Well, that wasn't the problem, apparently. Supposedly, the IB prefs thing has been fixed since 1.2 xref:
http://jerakeen.org/slush/subversion_and_interface_builder


I did find this tidbit at rogue amoeba - http://www.rogueamoeba.com/ utm/posts/Article/svn-intro.html
--------snip
Subversion and OS X specific configuration
Although it isn't well documented, there are some client side Subversion configuration settings that can make svn nicer. They are stored in: ~/.subversion/config. Here is the interesting part of my configuration file:



[miscellany]
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.pbxuser build
enable-auto-props = yes


[auto-props]
*.pbxuser = svn:mime-type=application/octet-stream

The "global-ignores" line is the default global-ignores, with the addition of "*.pbxuser" and "build". This keeps pbxuser files and build folders out of the results of "svn status", where they are just clutter.

The three auto-props lines make sure that pbxuser files are always marked as binary, they default to being treated as text otherwise. This is a way of fully automating Bill Bumgarner's original solution for pbxuser files.
-------snip


Once I got rid of build from the repos and tryed again, svn ignored build and didn't let xcode know about it, no more worries, seems like everything's hunky dory again.


Oh and boy is Apple tight with preferences, I couldn't find any references to VersionControlDirectory on the site, but I did find this doc:
http://developer.apple.com/releasenotes/DeveloperTools/Xcode/ XcodeDefaults.html


Thanks,

Will

On Nov 25, 2005, at 11:35 PM, Ryan Britton wrote:

Not that I know of, unfortunately. I don't remember where I found that, but I know I was having problems with interface builder randomly killing my .svn directories. Setting that particular setting seemed to fix it.

On Nov 25, 2005, at 9:04 PM, Will Senn wrote:

Ryan,

I just meant the main interface where you manage the project, XCode itself, I suppose. But I think this might work anyway. I'll give it a shot. Where the heck does one pick up this kind of knowledge anyway, is there a list of Application properties somewhere?

Thanks,

Will

On Nov 25, 2005, at 10:45 PM, Ryan Britton wrote:

Are you referring to interface builder? Project builder has been deprecated for some time now. If so, try this. It should eliminate most of the svn problems you're having.

defaults write com.apple.InterfaceBuilder VersionControlDirectory "(CVS, .svn)"


On Nov 25, 2005, at 8:02 PM, Will Senn wrote:

Howdy all,

Well, I've just spent a day getting svn, apache, php and such working nicely on my Tiger box using a combination of my own knowhow plus the guidelines from the Apple Developer Connection article, "Getting Control with Subversion and Xcode", available at:
http://developer.apple.com/tools/subversionxcode.html
A word of advice, don't build apache with --with-mpm=worker, it appears to cause problems with tiger, something about preforks and knives comes to mind, but alas, that's not what this post is about.


This post concerns a much more unpleasant reality, and that's this - it would appear that XCode's project builder deletes .svn directories without asking, perhaps it is its prerogative, dunno, but it's pretty annoying. I created a project, added it to source control, edited a file here and a file there and then tried to commit the changes and svn refused, complaining about locks and whatnot. Come to find out, project builder treats nibs as objects and destroys and creates them at will (wiping out subversions working files in the process). Whereas subversion treats nibs as directories (cuz that's what they are :) ) and stores .svn directories in them as part of it's working directory scheme.

Just curious, what do you guys and gals think about it? Is this something that Apple needs to fix in XCode, or something that Subversion should handle? Personally, I have no preference who fixes it so long as the problem goes away - I will continue to use Subversion as I love it, but I may wind up doing archival backups in XCode until the problem is resolve - anyone got a better idea?

Regards,

Will

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Subversion and XCode (From: Will Senn <email@hidden>)
 >Re: Subversion and XCode (From: Ryan Britton <email@hidden>)
 >Re: Subversion and XCode (From: Will Senn <email@hidden>)
 >Re: Subversion and XCode (From: Ryan Britton <email@hidden>)

  • Prev by Date: Re: Subversion and XCode
  • Next by Date: Re: Is Apple's singleton sample code correct?
  • Previous by thread: Re: Subversion and XCode
  • Next by thread: Re: Subversion and XCode
  • Index(es):
    • Date
    • Thread