More changes towards self hosting. Some work on model is still missing...
"{ Package: 'stx:libscm/mercurial' }"
SCMAbstractPackageModelRegistry subclass:#HGPackageModelRegistry
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'SCM-Mercurial-StX'
!
!HGPackageModelRegistry methodsFor:'accessing'!
packageNamed:package
"Returns a HGPackageModel for given package."
| dir repo |
packages at: package ifPresent: [ :pkg | ^ pkg ].
wcs at: package ifPresent:[ :wc | ^ wc ].
dir := Smalltalk getPackageDirectoryForPackage: package.
dir := HGRepository discover: dir.
dir isNil ifTrue:[
HGError raiseErrorString: 'No repository found for package ',package.
^nil.
].
repo := repositories at: dir ifAbsentPut: [ HGRepository on: dir ].
^packages at: package ifAbsentPut: [ HGPackageModel name: package repository: repo ].
"Created: / 14-11-2012 / 00:15:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 14-11-2012 / 23:21:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!HGPackageModelRegistry class methodsFor:'documentation'!
version_HG
"Never, ever change this method. Ask JV or CG why"
^thisContext method mclass theNonMetaclass instVarNamed: #revision
!
version_SVN
^ '$Id:: $'
! !