[squeak-dev] Re: 3.10.2 Forever ? (was Re: How to get a Trunk
image)
Bert Freudenberg
bert at freudenbergs.de
Mon Sep 7 22:21:39 UTC 2009
On 07.09.2009, at 23:59, Bert Freudenberg wrote:
> On 07.09.2009, at 22:57, Andreas Raab wrote:
>
>> One is how to label the image properly. I'd say that given we're
>> using Monticello, the update number is somewhat useless in this
>> context. I would argue that a dated version (i.e., SqueakX.Y-090907
>> for Sept 7th, 2009) is more adequate. And yes, we could shorten
>> that to "update number 90907" if we wanted to ;-)
>
>
> Makes sense, at least until someone comes up with a nicer idea. How
> about something like this:
>
> Utilities>>updateFromServer
> "Update the image by loading all pending updates from the server."
> | config |
> config := MCMcmUpdater updateFromRepositories: #(
> 'http://source.squeak.org/trunk'
> ).
> SystemVersion current date: config date
Or even what you suggested above which will work with all the places
that use the update number:
config date dayMonthYearDo: [:d :m :y |
SystemVersion current highestUpdate: y * 100 + m * 100 + d].
> MCConfiguration>>date
> "answer date of latest dependency"
> ^self dependencies inject: Date new into: [:latest :each |
> latest max: (each versionInfo date
> ifNil: [((MCWorkingCopy forPackage: each package) ancestry
> findAncestor: each versionInfo) date])]
>
> MCAncestry>>findAncestor: aVersionInfo
> self allAncestorsDo: [:each | aVersionInfo = each ifTrue: [^each]].
> ^nil
- Bert -
More information about the Squeak-dev
mailing list
|