Re: Enormous .xib diffs between IB minor versions
Re: Enormous .xib diffs between IB minor versions
- Subject: Re: Enormous .xib diffs between IB minor versions
- From: Dave Reed <email@hidden>
- Date: Wed, 14 Apr 2010 12:53:42 -0400
On Apr 14, 2010, at 12:41 PM, Jens Alfke wrote:
> I maintain an open source project that receives patches from various people, not all of whom have exactly the same version of Xcode installed. I find that, if someone makes even minor changes to a .xib file using a different version of IB than the one that last saved the file, enormous diffs will result, making the patches very hard to read.
>
> For example, I just got a patch that supposedly just adds one outlet and wires it up, but the diffs to the .xib file are 740 lines long! They don’t look like no-ops, either: lots of ids changing, big binary TIFF blobs coming and going, entire dictionaries being added/removed, etc.
>
> And by ‘different version of IB’ I don’t mean Xcode 3.1 vs 3.2 — it seems like even minor version differences cause this. That patch I just mentioned begins with
> - <string key="IBDocument.InterfaceBuilderVersion">783</string>
> + <string key="IBDocument.InterfaceBuilderVersion">762</string>
> I think the difference is that I have installed the new iPh-n- OS SDK and he is still using the regular Xcode 3.2.2. (I just checked, and the IB from Xcode 3.1.3 writes version 677 into xibs.)
>
> Is there anything that can be done about this, short of rejecting patches from people who don’t have the same version of the tools that I do?
>
I'm not certain it's just a different version of Xcode issue - see the email below from Sean McBride sent to this list a few weeks ago:
Dave
On Thu, 25 Mar 2010 12:38:10 -0500, Ken Thomases said:
> 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.
Exactly. Try this: open a xib, change nothing, save, diff. Many
changes! :( I encourage everyone to file a bug on this.
> You can reliably merge .pbxproj files.
That's my experience as well.
> XIBs can't be reliably merged by naive algorithms, I don't think.
svn's merge certainly cannot. I doubt other's can either.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden