The Trunk: Monticello-nice.569.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-nice.569.mcz

commits-2
Nicolas Cellier uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-nice.569.mcz

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

Name: Monticello-nice.569
Author: nice
Time: 16 September 2013, 9:24:47.159 pm
UUID: 701016d2-07a5-4a65-885f-95ff51d1fa17
Ancestors: Monticello-fbs.568

Correct a bug preventing to publish a new package when no prior version exists.

To reproduce the bug:
create a protocol *Foo in Object.
Create a method foo classified *Foo
Create a package (+Package) Foo in Monticello Browser.
Publish the package Foo in local package-cache repository.
Before loading this fix-> nil DNU packageName

=============== Diff against Monticello-fbs.568 ===============

Item was changed:
  ----- Method: MCWorkingCopy>>possiblyNewerVersionsIn: (in category 'private') -----
  possiblyNewerVersionsIn: aRepository
  ^ aRepository possiblyNewerVersionsOfAnyOf:
+ ((self ancestors collect: [:each | each versionName])
+ ifEmpty: [Array new]
+ ifNotEmpty: [:ancestors | {ancestors detectMax: [:v | v versionNumber ]}])!
- {(self ancestors collect: [:each | each versionName])
- detectMax: [:v | v versionNumber ]}!