Graphical representation of plist hierarchy
Is there any way to display the inheritance hierarchy of plists? Since the ppc and intel version have diverged at some point it would be interesting to see the tree. I guess this could be done manually if there is no current facility. Michael
On Jan 9, 2008, at 4:40 PM, Michael Franz wrote:
Is there any way to display the inheritance hierarchy of plists? Since the ppc and intel version have diverged at some point it would be interesting to see the tree.
I guess this could be done manually if there is no current facility.
DBCopyBuilds() will return an array of all builds known to the darwinxref database. DBCopyBuildInheritance() will return an array of all builds that a given build inherits from (most recent build first, oldest build last). Note that the inheritance for any single build is linear. I'd recommend a simple plugin that writes a graphviz DOT file describing the hierarchy, then use graphviz to render it. - Kevin
On 1/9/08, Kevin Van Vechten <kvv@apple.com> wrote:
On Jan 9, 2008, at 4:40 PM, Michael Franz wrote:
Is there any way to display the inheritance hierarchy of plists? Since the ppc and intel version have diverged at some point it would be interesting to see the tree.
I guess this could be done manually if there is no current facility.
DBCopyBuilds() will return an array of all builds known to the darwinxref database.
DBCopyBuildInheritance() will return an array of all builds that a given build inherits from (most recent build first, oldest build last). Note that the inheritance for any single build is linear.
I'd recommend a simple plugin that writes a graphviz DOT file describing the hierarchy, then use graphviz to render it.
- Kevin
I have used graphiviz before, and was thinking that would be the way to go. I have seen this done with the linux source. Interesting.
Here are two different version of the same graph that represent the hierarchy of plist 8G1165. Any preference to which is better? Michael
Here is one that includes all the plist (I hope I didn't miss any). This was not completely created by automation. I had to clean it up a bit manually. I think it creates an interesting picture. Maybe not.
Cool! And it's very interesting; 7W98 should inherit from 7U16, and I wasn't aware we were missing that inheritance until now. - Kevin On Jan 9, 2008, at 8:10 PM, Michael Franz wrote:
Here is one that includes all the plist (I hope I didn't miss any). This was not completely created by automation. I had to clean it up a bit manually.
I think it creates an interesting picture. Maybe not.
On 1/10/08, Kevin Van Vechten <kvv@apple.com> wrote:
Cool! And it's very interesting; 7W98 should inherit from 7U16, and I wasn't aware we were missing that inheritance until now.
Here is an updated picture based on the update to 7W98 in subversion. I have included the file I generate - it has a bunch of duplicate connections, any ideas on an easy way to remove the duplicate paths? I attached the source code for the plugin - needs work and the modified dot source used to create the image.
Here is another version that should handle all the cases. I am not so happy with the logic, but it works.
I think 7w98 inherits 7u16 is I'm not mistaken. Have you considered joining the IRC? -- BuildSmart On Jan 9, 2008, at 23:10:00, Michael Franz wrote:
Here is one that includes all the plist (I hope I didn't miss any). This was not completely created by automation. I had to clean it up a bit manually.
I think it creates an interesting picture. Maybe not.
_______________________________________________ darwinbuild-dev mailing list darwinbuild-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/darwinbuild-dev
participants (3)
-
Kevin Van Vechten
-
Michael Franz
-
websrvr