you diffirent versions can also be branches of the same repo , so you have one branch for pharo 4 and one for pharo 5 , baseline can load code from specific branches. On Tue, Oct 20, 2015 at 4:14 PM Gabriel Cotelli <g.cotelli@gmail.com> wrote:
I've tried something like this with a BaselineOf and it works, but I want to define the #stable version for a ConfigurationOf because as far as I know the ConfigurationBrowser/CatalogBrowser uses only configurations and tries to load the stable symbolic version.
On Tue, Oct 20, 2015 at 4:06 AM, Max Leske <maxleske@gmail.com> wrote:
Hi Gabriel,
Looks ok to me.
Take a look at https://github.com/theseion/LibGit/blob/master/BaselineOfLibGit.package/Base.... I think youâll find all your use cases in that baseline.
As for loading:
Metacello new baseline: #LibGit; repository: 'github://theseion/LibGit:master'; load.
Metacello new baseline: #LibGit; repository: 'github://theseion/LibGit:master'; load: 'developmentâ.
HTH, Max
On 20 Oct 2015, at 05:05, Gabriel Cotelli <g.cotelli@gmail.com> wrote:
I was wondering if something like this can work:
Given a ConfigurationOfProject (a subclass of ConfigurationOf) defining:
stable: spec <symbolicVersion: #stable> spec for: #'pharo4.0.x' do: [spec baseline: 'Project' with: [ spec repository: 'github://username/Project:stableForPharo4/']]. spec for: #'pharo5.0.x' do: [spec baseline: 'Project' with: [ spec repository: 'github://username/Project:stableForPharo5/']].
where stableForPharo4 and stableForPharo5 are tags in the git repo (and assuming the BaselineOfProject is defined in this commits). Is this supposed to work :
Metacello new configuration: 'Project'; repository: 'github://username/Project:master'; version: #stable; load. ??
I've tried using a non-symbolic version and it works but I can't make it work for #stable. I'd like to use this configuration for the Configuration Browser/Catalog Browser.
Any help is appreciated.