Advertisement
emaringolo

VW Glorp Commits comments

May 30th, 2016
988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. session := Store.Glorp.StoreLoginFactory currentStoreSession.
  2. query := Glorp.Query read: Store.Glorp.StoreBundle where: [:each | (each name = 'Glorp')].
  3. query orderBy: [:each | each timestamp].
  4. packages := (session execute: query) select: [:each | each timestamp >= (Locale current readDateFrom: '2011-01-01' readStream) asTimestamp ].
  5.  
  6. blessings := (packages collect: [:each | each blessings ]) inject: OrderedCollection new into: [:all :collection | all addAll: collection; yourself ].
  7. blessings := blessings reject: [:each | each comment = '' or: [each comment beginsWith: 'Replicated' ]].
  8.  
  9. stream := WriteStream on: String new.
  10. blessings do: [:blessing |
  11.     stream
  12.         nextPutAll: blessing timeStampString;
  13.         nextPutAll: ': ';
  14.         nextPutAll: blessing comment;
  15.         cr.
  16. ].
  17. stream contents
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement