| | 4 | |
| | 5 | Rufus suggests alongside the existing methods: |
| | 6 | {{{ |
| | 7 | pkg.all_revisions() |
| | 8 | pkg.diff() |
| | 9 | }}} |
| | 10 | we have ones which also include the related objects (tags, extras, resources): |
| | 11 | {{{ |
| | 12 | pkg.all_revisions_full() |
| | 13 | pkg.diff_full() |
| | 14 | }}} |
| | 15 | You could have a function which returned these related objects. Ideas: |
| | 16 | {{{ |
| | 17 | revobjlist = [ self, resources, extras ] |
| | 18 | list of tuples: (revobj, changed_revobjs) |
| | 19 | list of tuples: (revobj, {objtype: [changed_revobjs]}) |
| | 20 | tuple: (rev1, {Package: [ object_id, object_id], PackageTag: [object_id, object_id2] ...} |
| | 21 | }}} |