The Trunk: Monticello-tfel.609.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Monticello-tfel.609.mcz

commits-2
Tim Felgentreff uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-tfel.609.mcz

==================== Summary ====================

Name: Monticello-tfel.609
Author: tfel
Time: 7 April 2015, 9:35:13.09 am
UUID: fe332c1c-12f4-9e48-8b93-b4edb44a9519
Ancestors: Monticello-tfel.608, Monticello-cmm.608

add an option to open changes between two different versions in the repository in a patch browser (what the Changes button does, but instead of against the image, do it against another package from the repo)

=============== Diff against Monticello-cmm.608 ===============

Item was changed:
  ----- Method: MCRepositoryInspector>>versionListMenu: (in category 'morphic ui') -----
  versionListMenu: aMenu
  1 to: self orderSpecs size do: [ :index |
  aMenu addUpdating: #orderString: target: self selector: #order: argumentList: { index } ].
+ aMenu addLine.
+ aMenu add: 'Changes against ...' action: [| ri |
+ ri := aMenu defaultTarget.
+ (UIManager default
+ chooseFrom: ri allVersionNames
+ values: ri allVersionNames
+ title: 'Select version to show patch against ...') ifNotNilDo: [:name |
+ | versionName target base |
+ versionName := MCVersionName on: name.
+ target := ri repository versionNamed: ri versionInfo name.
+ base := aMenu defaultTarget repository versionNamed: versionName.
+ (MCPatchBrowser
+ forPatch: (target snapshot patchRelativeToBase: base snapshot))
+ showLabelled: 'Changes from ', versionName, ' to ', ri versionInfo name]].
  ^aMenu!