[darwinbuild-dev] How to find build version difference

William Siegrist wsiegrist at apple.com
Tue Jan 8 15:55:42 PST 2008


Thanks. I'll take a look at this and see about integrating it. The  
only problem I see is you need to find the set of all projects in both  
builds, so some sort of combination of  
dictionaryGetSortedKeys(dstprojects) and  
dictionaryGetSortedKeys(srcprojects). I'm not a CF expert, but  
shouldnt be too bad. I'm not sure when I'll get to it, so if you feel  
like sending me an update before I get to it, feel free.

Thanks

-Bill




On Jan 7, 2008, at 7:45 PM, Michael Franz wrote:

> Dale,
>
> I found a slight bug in my implementation.  I do not use a complete
> set of project names, so, when the src build has many more projects
> than the destination the diff is incorrect.  I am currently looking at
> a way to create a set of the two build project names.  This way I will
> have a complete set of all projects in both builds.
>
> As I mentioned before, I don't know the Apple libraries well, so I am
> learning how to use CFSet and CFArray.
>
> Michael
>
> On 1/7/08, BuildSmart <buildsmart at daleenterprise.com> wrote:
>> Very nice, thanks Michael, I looked it over and your implementation  
>> isn't
>> that bad, actually, my opinion (FWIW) is it's actually pretty decent.
>>
>> It could have been implemented in a half dozen ways but what you've  
>> done is
>> a simple solution that will allow adding the functionality without  
>> having to
>> rebuild everything.
>>
>> Would be nice if Kevin includes it or at least considers adopting the
>> concept by multiplexing the existing plugin.
>>
>> -- BuildSmart
>>
>>
>> On Jan 7, 2008, at 21:43:37, Michael Franz wrote:
>>
>> After thinking about this, it did not seem like it would be too hard.
>> And it wasn't. I made a copy the mergeBuild.c and modified with some
>> code from version.c.
>>
>> This file just needs to be added to plugins directory of darwinxref.
>> It can be used as:
>> darwinxref diff <build1> <build2>
>>
>> I am not that familar with Apples libraries (more of a straight C  
>> guy)
>> but hopefully I didn't do anything to stupid.  Please take a look and
>> include in darwinbuild if you find it useful.
>>
>> Overall, this took a few hours for me to whip up, easier than I was
>> expecting.
>>
>> Michael
>>
>> On 1/7/08, William Siegrist <wsiegrist at apple.com> wrote:
>> Not currently. You can get the list of versions via:
>>
>> darwinxref -b <build> version '*'
>>
>> ... and diff the output between two builds.
>>
>> However, we'll save this as a suggestion for an improvement to
>> darwinxref.
>>
>> Thanks.
>>
>> -Bill
>>
>>
>> On Jan 7, 2008, at 4:28 AM, Michael Franz wrote:
>>
>>
>> Hi,
>>
>> Sorry if this is common knowledge, but I was not able to find a way  
>> of
>> doing this.
>>
>> Is there a way to get a list of what changed between one plist and
>> another?  It is easy enough to diff the plist themselves, but is  
>> there
>> a tool that given two plists will say project X was upgraded to
>> version Y?  Or new project X was added.
>>
>> Michael
>> _______________________________________________
>> darwinbuild-dev mailing list
>> darwinbuild-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/darwinbuild-dev
>>
>>
>>
>>
>> ----
>> William Siegrist
>> Software Support Engineer
>> Mac OS Forge
>> http://macosforge.org/
>> wsiegrist at apple.com
>> 408 862 7337
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> darwinbuild-dev mailing list
>> darwinbuild-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/darwinbuild-dev
>> -- Dale
>>
>>
>>
>>
>>
>>




----
William Siegrist
Software Support Engineer
Mac OS Forge
http://macosforge.org/
wsiegrist at apple.com
408 862 7337





-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2421 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/darwinbuild-dev/attachments/20080108/7e233631/smime-0001.bin


More information about the darwinbuild-dev mailing list