• 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: Trouble forking my project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble forking my project


  • Subject: Re: Trouble forking my project
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 25 Mar 2010 12:38:10 -0500

On Mar 25, 2010, at 12:23 PM, email@hidden wrote:

> On Mar 25, 2010, at 11:12 AM, Sean McBride wrote:
>
>> That's all fine and good until you need to change a xib (or worse,
>> nib).  xibs are neither diffable nor auto-mergeable.  In my experience,
>> they are the single biggest PITA when trying to work with branches.  I
>> actually find myself missing Rez<->DeRez.
>
> I thought xib files were diffable - aren't they just XML files - while nib files were binary files and not diffable or mergeable.

The problem isn't so much the file format, it's Interface Builder.  IB is too prone to renumbering/reordering objects or implementing a simple property change as removal of the object and replacement with a new object.


> I admit I get a little worried when trying to merge multiple changes on some XML files such as the project.pbxproj if multiple different files have been added to the project on different computers.
>
> Can anyone speak authoritatively on this? Can you reliably merge the various XML files that Xcode/IB uses using the tools in version control systems (I'm using Mercurial now)?

You can reliably merge .pbxproj files.  Of course, there can be conflicts, but those are very often just a matter of new lines being added in the same vicinity on the two branches, so the resolution is to keep both sets.  The .pbxproj contents can be understood fairly well, especially thanks to the comments within them, so you should be able to make sense of more complicated conflicts with a bit of thought.

XIBs can't be reliably merged by naive algorithms, I don't think.

YMMV.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trouble forking my project
      • From: "Sean McBride" <email@hidden>
References: 
 >Trouble forking my project (From: Graham Cox <email@hidden>)
 >Re: Trouble forking my project (From: Eli Bach <email@hidden>)
 >Re: Trouble forking my project (From: Graham Cox <email@hidden>)
 >Re: Trouble forking my project (From: Dave Carrigan <email@hidden>)
 >Re: Trouble forking my project (From: "Sean McBride" <email@hidden>)
 >Re: Trouble forking my project (From: email@hidden)

  • Prev by Date: Re: Core Data doesn't save toMany relations please HELP :S
  • Next by Date: Re: Trouble forking my project
  • Previous by thread: Re: Trouble forking my project
  • Next by thread: Re: Trouble forking my project
  • Index(es):
    • Date
    • Thread