Marcel Taeumel uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-ct.756.mcz
==================== Summary ====================
Name: Monticello-ct.756
Author: ct
Time: 2 November 2021, 2:05:38.669566 pm
UUID: 9d6301ac-f912-a742-8779-225931a59ba5
Ancestors: Monticello-ul.753
Honor the preference #checkForNewerVersionsBeforeSave again, which was previously unused.
=============== Diff against Monticello-ul.753 ===============
Item was changed:
----- Method: MCWorkingCopyBrowser>>saveVersion (in category 'actions') -----
saveVersion
| repo |
self canSave ifFalse: [^self].
+ self class checkForNewerVersionsBeforeSave ==> [self checkForNewerVersions] ifFalse: [^self].
- self checkForNewerVersions ifFalse: [^self].
repo := self repository.
(repo == MCRepository trunk and: [SystemVersion current isFeatureFreeze])
ifTrue: [self inform: 'FEATURE FREEZE. A new release is being prepared.\Please do only do bugfixes, but no new features.' translated withCRs].
(repo == MCRepository trunk and: [SystemVersion current isCodeFreeze])
ifTrue: [self inform: 'CODE FREEZE. The new release is almost ready.\Please do only do URGENT fixes, if any.' translated withCRs].
(self withRepository: repo do: [workingCopy newVersion]) ifNotNil:
[:v |
(MCVersionInspector new version: v) show.
Cursor wait showWhile: [repo storeVersion: v].
MCCacheRepository default cacheAllFileNamesDuring:
[repo cacheAllFileNamesDuring:
[v allAvailableDependenciesDo:
[:dep |
(repo includesVersionNamed: dep info name)
ifFalse: [repo storeVersion: dep]]]]]!
Marcel Taeumel uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-ct.755.mcz
==================== Summary ====================
Name: Monticello-ct.755
Author: ct
Time: 27 October 2021, 7:34:45.607494 pm
UUID: beab3269-c89b-7b49-a0d3-987f24acd2b4
Ancestors: Monticello-ul.753
On MCRepositoryGroup, implements further selectors for compatibility with MCRepository (#cacheAllFileNamesDuring: and #isValid).
This is required for https://github.com/hpi-swa/Squot/pull/328.
(Just asking, would it be possible to backport this to 5.3 and 5.2? This would testing much easier on the Squot side.)
=============== Diff against Monticello-ul.753 ===============
Item was added:
+ ----- Method: MCRepositoryGroup>>cacheAllFileNamesDuring: (in category 'private') -----
+ cacheAllFileNamesDuring: aBlock
+ ^ (repositories
+ inject: aBlock
+ into: [ :innerBlock :repository |
+ [ repository cacheAllFileNamesDuring: innerBlock ]
+ ]) value!
Item was added:
+ ----- Method: MCRepositoryGroup>>isValid (in category 'testing') -----
+ isValid
+
+ ^ repositories allSatisfy: #isValid!
Marcel Taeumel uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-ct.754.mcz
==================== Summary ====================
Name: Monticello-ct.754
Author: ct
Time: 27 October 2021, 7:32:31.272494 pm
UUID: 03f106f8-ef67-b642-906f-200a39a7ea96
Ancestors: Monticello-ul.753
Fixes a debugger when pressing <cmd>v in a save version dialog while no method is selected. All other hotkeys there are okay, I have checked this.
=============== Diff against Monticello-ul.753 ===============
Item was changed:
----- Method: MCCodeTool>>browseVersions (in category 'menus') -----
browseVersions
"Create and schedule a message set browser on all versions of the currently selected message selector."
(ToolSet
browseVersionsOf: self selectedClassOrMetaClass
+ selector: (self selectedMessageName ifNil: [^ self])) ifNil: [self changed: #flash]!
- selector: self selectedMessageName) ifNil: [self changed: #flash]!
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.964.mcz
==================== Summary ====================
Name: Collections-ul.964
Author: ul
Time: 29 November 2021, 8:04:44.235979 pm
UUID: 51dbb755-a7ad-4396-807d-d6b24815c1d4
Ancestors: Collections-mt.963
- fixed OrderedDictionary >> #growTo:: if the argument is smaller than the capacity, #grownBy: cannot work. The change also makes #rehash faster by leaving the order variable intact.
- updated the comment of HashedCollection >> #growTo:
- renamed newCapacity to newArraySize in HashedCollection >> #compact because #sizeFor: returns the array size and not the capacity of the hashed collection. Also, if the size of array wouldn't change, do not nothing.
- removed the private method with no senders Dictionary >> #valueAtNewKey:put:atIndex:declareFrom:
=============== Diff against Collections-mt.963 ===============
Item was removed:
- ----- Method: Dictionary>>valueAtNewKey:put:atIndex:declareFrom: (in category 'private') -----
- valueAtNewKey: aKey put: anObject atIndex: index declareFrom: aDictionary
- "Support for coordinating class variable and global declarations
- with variables that have been put in Undeclared so as to
- redirect all references to the undeclared variable."
-
- (aDictionary includesKey: aKey)
- ifTrue:
- [self atNewIndex: index
- put: ((aDictionary associationAt: aKey) value: anObject).
- aDictionary removeKey: aKey]
- ifFalse:
- [self atNewIndex: index put: (self associationClass key: aKey value: anObject)]!
Item was changed:
----- Method: HashedCollection>>compact (in category 'private') -----
compact
"Reduce the size of array so that the load factor will be ~75%."
+ | newArraySize |
+ newArraySize := self class sizeFor: self slowSize.
+ array size = newArraySize ifFalse: [
+ self growTo: newArraySize ]!
- | newCapacity |
- newCapacity := self class sizeFor: self slowSize.
- self growTo: newCapacity!
Item was changed:
----- Method: HashedCollection>>growTo: (in category 'private') -----
growTo: anInteger
+ "Grow the elements array and reinsert the old elements. Do it even if the size of the array is the same as the argument because this methods is also used to rehash the collection."
- "Grow the elements array and reinsert the old elements"
| oldElements |
oldElements := array.
array := self arrayType new: anInteger.
self noCheckNoGrowFillFrom: oldElements!
Item was changed:
----- Method: OrderedDictionary>>growTo: (in category 'private') -----
growTo: anInteger
+ | newCapacity capacityDifference |
super growTo: anInteger.
+ newCapacity := self capacity.
+ capacityDifference := newCapacity - order size.
+ capacityDifference = 0 ifTrue: [ ^self ].
+ order := capacityDifference > 0
+ ifTrue: [ order grownBy: capacityDifference ]
+ ifFalse: [ order first: newCapacity ]!
- order := order grownBy: self capacity - order size!
Marcel Taeumel uploaded a new version of ST80Tools to project The Trunk:
http://source.squeak.org/trunk/ST80Tools-mt.14.mcz
==================== Summary ====================
Name: ST80Tools-mt.14
Author: mt
Time: 29 November 2021, 6:39:27.370615 pm
UUID: b6439244-d84e-40cf-8bcb-1a7f50be89d7
Ancestors: ST80Tools-mt.13
Complements Tools-mt.1079
=============== Diff against ST80Tools-mt.13 ===============
Item was added:
+ ----- Method: ParagraphEditor>>saveContentsInFile (in category '*ST80Tools') -----
+ saveContentsInFile
+ "Save the receiver's contents string to a file, which usually prompts the user for a file name."
+
+ paragraph text string
+ ifEmpty: [self inform: 'Nothing to save.']
+ ifNotEmpty: [:stringToSave | model saveContents: stringToSave accessMode: #create].!