[squeak-dev] The Trunk: Monticello-fbs.581.mcz

Chris Muller asqueaker at gmail.com
Tue Jan 21 21:23:51 UTC 2014


Could you help me understand what this change is about?  Without
trying to understand the code, I see no difference in the behavior,
except that now it blows up when yellow-clicking when nothing is
selected.

Thanks.

On Sat, Jan 18, 2014 at 10:58 AM,  <commits at source.squeak.org> wrote:
> Frank Shearar uploaded a new version of Monticello to project The Trunk:
> http://source.squeak.org/trunk/Monticello-fbs.581.mcz
>
> ==================== Summary ====================
>
> Name: Monticello-fbs.581
> Author: fbs
> Time: 18 January 2014, 4:58:44.499 pm
> UUID: bd327588-05f4-cf4c-87cd-1f5039cb4b04
> Ancestors: Monticello-cmm.580
>
> When browsing the history of a version, you may now select the current version and find out its changes relative to its ancestor.
>
> =============== Diff against Monticello-cmm.580 ===============
>
> Item was changed:
>   ----- Method: MCVersionHistoryBrowser>>getMenu: (in category 'morphic ui') -----
>   getMenu: aMenu
> +       | menuSpecs |
> +       menuSpecs := (self selectedInfo ancestors collect: [:parent |
> -       self selection < 2 ifTrue: [^ aMenu].
> -       self fillMenu: aMenu fromSpecs:
> -               {{'view changes to ', ancestry name . #viewChanges}},
> -               (self selectedInfo ancestors collect: [:parent |
>                         {'view changes from ', parent name . #viewChanges: . parent}]),
>                 #(('spawn history' spawnHistory)
>                 ('search history' searchHistory)).
> +       self selection > 1 ifTrue: [
> +               menuSpecs := {{'view changes to ', ancestry name . #viewChanges}}, menuSpecs].
> +
> +       self fillMenu: aMenu fromSpecs: menuSpecs.
>         ^ aMenu!
>
>


More information about the Squeak-dev mailing list