MCPackageCache.st
author Claus Gittinger <cg@exept.de>
Sun, 26 Aug 2018 14:41:59 +0200
changeset 1051 793db72fde39
parent 791 93a642e657f9
permissions -rw-r--r--
#FEATURE by cg class: MCFtpRepository class definition added: #asRepositorySpecFor: #directory #host #isRemote #koRemote #loadAllFileNames comment/format in: #readStreamForFileNamed:do: changed: #description class: MCFtpRepository class added: #basicFromUrl: #documentation #fillInTheBlankRequest #morphicConfigure #urlSchemes

"{ Package: 'stx:goodies/monticello' }"

Object subclass:#MCPackageCache
	instanceVariableNames:'sorter fileNames'
	classVariableNames:''
	poolDictionaries:''
	category:'SCM-Monticello-Repositories'
!

!MCPackageCache class methodsFor:'documentation'!

documentation
"
    I'm a kind of cache for versions and filenames of packages.
"
! !

!MCPackageCache class methodsFor:'initialization'!

new
    ^self basicNew initialize
! !

!MCPackageCache methodsFor:'as yet unclassified'!

initialize
	super initialize.
	sorter := MCVersionSorter new.
	fileNames := Dictionary new.
!

recordVersionInfo: aVersionInfo forFileNamed: aString
	Transcript cr; show: aString.
	fileNames at: aVersionInfo put: aString.
	sorter addVersionInfo: aVersionInfo
!

versionInfos
	^ sorter sortedVersionInfos 
! !

!MCPackageCache class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCPackageCache.st,v 1.5 2013-05-15 11:57:44 cg Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCPackageCache.st,v 1.5 2013-05-15 11:57:44 cg Exp $'
!

version_SVN
    ^ '$Id: MCPackageCache.st,v 1.5 2013-05-15 11:57:44 cg Exp $'
! !