FossilRepo: Support for querying hash numbers given a file name.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2016-09-30 19:42:46 +00:00
parent 6916c08394
commit 435afaa0f9

View File

@ -12,6 +12,11 @@ Class {
#category : #'Grafoscopio-Model'
}
{ #category : #'as yet unclassified' }
FossilRepo >> hashNumberFor: aFileName [
^ (((self jsonDataFor: aFileName) at: 'payload') at: 'checkins') first at: 'uuid'
]
{ #category : #'as yet unclassified' }
FossilRepo >> jsonDataFor: aFileName [
^ NeoJSONReader fromString: (self jsonStringFor: aFileName)