Difference between versionStatus

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Difference between versionStatus

Simon Denier-3
Hi Dale

I just would like to know the difference between the version status? Especially between isAllLoadedToSpec and isLoadedToSpec.

--
 Simon





--
To unsubscribe, reply using "remove me" as the subject.
Reply | Threaded
Open this post in threaded view
|

Re: Difference between versionStatus

Dale
Simon,

from #computeVersionStatus:

"all projects and packages are loaded and match specification"
  self isAllLoadedToSpec ifTrue: [ ^#allLoadedToSpec ].
"all loaded projects and packages match specifications
  (at least one package loaded)"
  self isLoadedToSpec ifTrue: [ ^#loadedToSpec ].
"all loaded projects and packages match constraints
  (at least one package loaded)"
  self isLoadedMatchConstraints ifTrue: [ ^#loadedMatchConstraints ].
"at least one package loaded"
  self isSomethingLoaded ifTrue: [ ^#somethingLoaded ].
  ^#noStatus

Dale
----- "Simon Denier" <[hidden email]> wrote:

| Hi Dale
|
| I just would like to know the difference between the version status?
| Especially between isAllLoadedToSpec and isLoadedToSpec.
|
| --
|  Simon
|
|
|
|
|
| --
| To unsubscribe, reply using "remove me" as the subject.
Reply | Threaded
Open this post in threaded view
|

Re: Difference between versionStatus

Simon Denier-3

On 1 avr. 2010, at 22:48, Dale Henrichs wrote:

> Simon,
>
> from #computeVersionStatus:

Well, I asked precisely because I found the descriptions unclear :)

>
> "all projects and packages are loaded and match specification"
>  self isAllLoadedToSpec ifTrue: [ ^#allLoadedToSpec ].

ok, this is when all packages and projects perfectly match against their versions

> "all loaded projects and packages match specifications
>  (at least one package loaded)"
>  self isLoadedToSpec ifTrue: [ ^#loadedToSpec ].

?

> "all loaded projects and packages match constraints
>  (at least one package loaded)"
>  self isLoadedMatchConstraints ifTrue: [ ^#loadedMatchConstraints ].

Projects/Packages may be younger versions

> "at least one package loaded"
>  self isSomethingLoaded ifTrue: [ ^#somethingLoaded ].

Incomplete load

>  ^#noStatus
>
> Dale
> ----- "Simon Denier" <[hidden email]> wrote:
>
> | Hi Dale
> |
> | I just would like to know the difference between the version status?
> | Especially between isAllLoadedToSpec and isLoadedToSpec.
> |
> | --
> |  Simon
> |
> |
> |
> |
> |
> | --
> | To unsubscribe, reply using "remove me" as the subject.

--
 Simon



Reply | Threaded
Open this post in threaded view
|

Re: Difference between versionStatus

Dale
In reply to this post by Simon Denier-3
Simon,

That's fair:) I will try again...

#allLoadedToSpec
  All packages and projects associated with this version of the project are
  loaded and the specified version for each package and projects matches the loaded
  version exactly.
#loadedToSpec
  One or more (but not all) packages and projects associated with this version of
  the project are loaded and the specified version for each loaded package or
  project matches the loaded version exactly
#loadedMatchConstraints
  One or more packages and projects associated with this version of the project are
  loaded and the specified version for one or more of the loaded packages or
  projects does not match exactly. For packages this means that the loaded version
  of a package may be later (#>=) than the specified version. For projects the
  project reference operator is used to determine the constraint. By default the
  operator for projects is #>=, so by default the loaded version of a project may
  be later than the specified version.
#somethingLoaded
  One or more of the packages and projects associated with this version of the
  project are loaded, but one or more of the loaded packages or projects do not
  match the constraints. By default that means that one or more of the loaded
  versions are earlier (#<=) than the specified version.
#noStatus
  None of the packages and projects associated with this version of the project
  are loaded.

The currentVersion for a project is calculated based on finding the version with the best versionStatus. In practice then a versionStatus of #loadedMatchConstraints means that your are in between two versions and a versionStatus of #somethingLoaded means that you are before the earliest defined version.
 
Dale
----- "Simon Denier" <[hidden email]> wrote:

| On 1 avr. 2010, at 22:48, Dale Henrichs wrote:
|
| > Simon,
| >
| > from #computeVersionStatus:
|
| Well, I asked precisely because I found the descriptions unclear :)
|
| >
| > "all projects and packages are loaded and match specification"
| >  self isAllLoadedToSpec ifTrue: [ ^#allLoadedToSpec ].
|
| ok, this is when all packages and projects perfectly match against
| their versions
|
| > "all loaded projects and packages match specifications
| >  (at least one package loaded)"
| >  self isLoadedToSpec ifTrue: [ ^#loadedToSpec ].
|
| ?
|
| > "all loaded projects and packages match constraints
| >  (at least one package loaded)"
| >  self isLoadedMatchConstraints ifTrue: [ ^#loadedMatchConstraints
| ].
|
| Projects/Packages may be younger versions
|
| > "at least one package loaded"
| >  self isSomethingLoaded ifTrue: [ ^#somethingLoaded ].
|
| Incomplete load
|
| >  ^#noStatus
| >
| > Dale
| > ----- "Simon Denier" <[hidden email]> wrote:
| >
| > | Hi Dale
| > |
| > | I just would like to know the difference between the version
| status?
| > | Especially between isAllLoadedToSpec and isLoadedToSpec.
| > |
| > | --
| > |  Simon
| > |
| > |
| > |
| > |
| > |
| > | --
| > | To unsubscribe, reply using "remove me" as the subject.
|
| --
|  Simon