[squeak-dev] The Trunk: Monticello-tfel.609.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Apr 7 07:35:44 UTC 2015


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!



More information about the Squeak-dev mailing list