Metacello / metacello

Metacello is a package management system for Smalltalk
MIT License
87 stars 43 forks source link

improve version reporting API for the registry #310

Open dalehenrich opened 10 years ago

dalehenrich commented 10 years ago

Case in point. FileTree is a hybrid project with both a configuration and baseline registered and the following expression shows information information for both the configuration and baseline, but only the baseline should apply:

(Metacello image
    project: 'FileTree';
    list)
    collect: [ :projectSpec | 
      MetacelloProjectRegistration
        registrationForProjectSpec: projectSpec
        ifAbsent: [  ]
        ifPresent: [ :existing :new | 
          existing baseName , ' ' , existing currentVersionString , '['
            , existing currentBranchName , ']' ] ]

In tODE I have additional code that resolves to the proper registration and that should be incorporated into the registration api...