[squeak-dev] The Trunk: Monticello-nice.460.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Apr 21 23:14:34 UTC 2011
Nicolas Cellier uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-nice.460.mcz
==================== Summary ====================
Name: Monticello-nice.460
Author: nice
Time: 22 April 2011, 1:14:10.592 am
UUID: c980ee70-a6d6-4f55-8beb-6e83124ead49
Ancestors: Monticello-bf.459
Add a protection when versionName isEmpty
(This happens in some ancestry of OB...)
=============== Diff against Monticello-bf.459 ===============
Item was changed:
----- Method: MCVersionName>>versionName (in category 'accessing') -----
versionName
"Answer my version name as a ByteString, without the file suffix or any ancestor-attributes."
| end |
+ self isEmpty ifTrue: [^''].
(self last between: $0 and: $9)
ifTrue: [ end := self size ]
ifFalse: [
end := (self lastIndexOf: $. ifAbsent: [ self size + 1 ]) - 1.
end := end min: (self indexOf: $( ifAbsent: [ self size + 1 ]) - 1 ].
^self first: end!
More information about the Squeak-dev
mailing list
|