Mantis - Squeak
Viewing Issue Advanced Details
7634 Tools minor always 05-06-11 10:41 05-06-11 21:37
FrankShearar  
FrankShearar  
normal  
resolved trunk  
fixed  
none    
none  
0007634: Cannot revert a class comment
Find a class with a class comment. Edit the comment. Click "versions". Revert to an earlier version.

"NonBooleanReceiver: proceed for truth." because instvar meta in ChangeRecord>>methodClass has as its value the class you're currently editing, rather than a boolean!

Notes
(0014091)
FrankShearar   
05-06-11 11:47   
ClassCommentVersionBrowser>>#scanVersionsOf: says this:

  self addItem:
    (ChangeRecord new file: file position: position type: #classComment
      class: class name category: nil meta: class stamp: stamp)

There are two possible solutions: force meta to be "class" or "class class", or change ChangeRecord>>#methodClass to say

  meta ifTrue: [ ^ methodClass class ].
  ^ methodClass.
(0014092)
FrankShearar   
05-06-11 20:16   
http://source.squeakfoundation.org/inbox/Tools-fbs.350.mcz [^]
(0014094)
FrankShearar   
05-06-11 21:37   
Nicolas Cellier added to Trunk.