Method versions and browsing them (Re: [squeak-dev] The Trunk: ToolBuilder-Morphic-ul.59.mcz)

Frank Shearar frank.shearar at angband.za.org
Sun May 2 18:40:12 UTC 2010


On 2010/05/02 17:37, Bert Freudenberg wrote:
> On 02.05.2010, at 16:18, Frank Shearar wrote:
>>
>> On 2010/05/02 15:21, Bert Freudenberg wrote:
>>>
>>> Updating using Monticello skips intermediate versions. It just loads the latest, so the intermediate ones are not in the changes file.
>>
>> Ah. Makes sense. It does make the VersionsBrowser less useful (IMO at least), since it shows only those versions in the changes file.
>
> Yup.
>
>> In other words, if I load a Monticello package, and look at the versions of some method brand new to the image, I'll only see that most recent version, not the full history of that method (which would require downloading every mcz/mcd for that package).
>>
>> But, if I understand correctly, if I loaded up each version separately and saved the image in between, I would see all the versions because each save would store that version in the changes file?
>
> No need to save the image in between. Just load all in succession.
>
> Btw, I'd think The Right Way to do this is put the versions into a database [*] on some server, preferably back to the beginning of time. Then hook the versions browser into that, merging local and remote changes. I think some student (maybe of Ralph?) started on this but I can't remember if it lead anywhere.

That would be awesome, because then I wouldn't have to do it :)

And I was pondering just that, actually: how to make Monticello 
git-like, or something like that. The thought's not well-formed. I don't 
mean turn Monticello into git or anything like that. I'd just like to be 
able to use a Squeak equivalent of, for instance, GitX or TortoiseGit, 
and be able to ask the repository questions - "Who touched this method? 
How did this class definition evolve?" And since mczs are immutable 
(*cough*) one could cache lots of this information.

> - Bert -
>
> [*] How does git or hg or something like that sound as a database format? ;)

There's been recent work in the Squeak-git area: Tony Garnock-Jones' 
http://www.squeaksource.com/Git.html, there's 
http://gsoc2010.esug.org/projects/git-mercurial and I seem to recall 
another project being mentioned on squeak-dev...?

frank



More information about the Squeak-dev mailing list