6.5: Getting a Change Set from Two Versions
- Page ID
- 43823
A Monticello version is the snapshot of one or more packages. A version contains the complete set of class and method definitions that constitute the underlying packages. Sometimes it is useful to have a “patch” from two versions. A patch is the set of all necessary side effects in the system to go from one version A to another version B.
Change set is a Pharo built-in mechanism to define system patches. A change set is composed of global side effects on the system. A new change sets may be created and edited from the Change Sorter. This tool is available from the World ⊳ Tools
entry.
The difference between two Monticello versions may be easily captured by creating a new change set before loading a second version of a package. As an illustration, we will capture the differences between version 1 and 2 of the Perfect package:
- Load version 1 of Perfect from the Monticello browser
- Open a change sorter and create a new change set. Let’s name it
DiffPerfect
- Load version 2
- In the change sorter, you should now see the difference between version 1 and 2. The change set may be saved on the filesystem by action-clicking on it and selecting
file out
. ADiffPerfect.X.cs
file is now located next to your Pharo image.