[Monticello2] Loading from a repository

Damien Cassou damien.cassou at gmail.com
Mon Jul 16 15:40:35 UTC 2007


Hi Colin and Avi,

I'm not sure how to load data from a repository into the image.

Currently, I have something like:

loadFromMemo
  | snapshot versions |
  snapshot := selectedMemo getSnapshotFrom: repository.
  versions := snapshot getVersionsFrom: repository.
  versions do: [:version | MDWorkingCopy default loadVersion: version]

Is that the right way of loading?

The problem with this approach is when a class A contain a method m1
in the image, but you are loading a version which does not contain
this method because it has been removed. Then, the method is not
removed from the image.

-- 
Damien Cassou



More information about the Squeak-dev mailing list