Changes between Initial Version and Version 1 of Ticket #303


Ignore:
Timestamp:
04/27/10 15:08:23 (4 years ago)
Author:
dread
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #303 – Description

    initial v1  
    22 
    33There is the complication that the 'diff' function doesn't currently work beyond PackageResource. Unless this is quick and simple to fix, I suggest we let the diff remain slightly broken for now. 
     4 
     5Rufus suggests alongside the existing methods: 
     6{{{ 
     7pkg.all_revisions() 
     8pkg.diff() 
     9}}} 
     10we have ones which also include the related objects (tags, extras, resources): 
     11{{{ 
     12pkg.all_revisions_full() 
     13pkg.diff_full() 
     14}}} 
     15You could have a function which returned these related objects. Ideas: 
     16{{{ 
     17revobjlist = [ self, resources, extras ] 
     18list of tuples: (revobj, changed_revobjs) 
     19list of tuples: (revobj, {objtype: [changed_revobjs]}) 
     20tuple: (rev1, {Package: [ object_id, object_id], PackageTag: [object_id, object_id2] ...} 
     21}}}