The Trunk: Tools-cmm.511.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tools-cmm.511.mcz

commits-2
Chris Muller uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-cmm.511.mcz

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

Name: Tools-cmm.511
Author: cmm
Time: 17 December 2013, 10:52:54.64 am
UUID: a6bd1338-4797-4405-b677-832e4a12139c
Ancestors: Tools-nice.510

Recover original accounting information for ChangeList>>#methodDiffFor:class:selector:prettyDiffs:.

=============== Diff against Tools-nice.510 ===============

Item was changed:
  ----- Method: ChangeList>>methodDiffFor:class:selector:prettyDiffs: (in category 'viewing access') -----
  methodDiffFor: aString class: aClass selector: aSelector prettyDiffs: prettyDiffBoolean
  "Return a string comprising a source-code diff between an existing method and the source-code in aString.  DO prettyDiff if prettyDiffBoolean is true."
 
  ^ (aClass notNil and: [aClass includesSelector: aSelector])
  ifTrue:
  [TextDiffBuilder
  buildDisplayPatchFrom: (aClass sourceCodeAt: aSelector)
  to: aString
  inClass: aClass
  prettyDiffs: prettyDiffBoolean]
  ifFalse:
  [aString copy]!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Tools-cmm.511.mcz

Chris Muller-3
I would like to ask everyone doing reorganization a favor -- Please do NOT cut-and-paste methods verbatim from one place to another.

Utilities>>#methodDiffFor:class:selector:prettyDiffs: was moved to ChangeList via a cut-and-paste.  This obliterated the original accounting information.

Instead, please use Drag-And-Drop and then, if you need to recover it in the source place, use MC to revert the deletion.

Thanks.


On Tue, Dec 17, 2013 at 10:53 AM, <[hidden email]> wrote:
Chris Muller uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-cmm.511.mcz

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

Name: Tools-cmm.511
Author: cmm
Time: 17 December 2013, 10:52:54.64 am
UUID: a6bd1338-4797-4405-b677-832e4a12139c
Ancestors: Tools-nice.510

Recover original accounting information for ChangeList>>#methodDiffFor:class:selector:prettyDiffs:.

=============== Diff against Tools-nice.510 ===============

Item was changed:
  ----- Method: ChangeList>>methodDiffFor:class:selector:prettyDiffs: (in category 'viewing access') -----
  methodDiffFor: aString class: aClass selector: aSelector prettyDiffs: prettyDiffBoolean
        "Return a string comprising a source-code diff between an existing method and the source-code in aString.  DO prettyDiff if prettyDiffBoolean is true."

        ^ (aClass notNil and: [aClass includesSelector: aSelector])
                ifTrue:
                        [TextDiffBuilder
                                buildDisplayPatchFrom: (aClass sourceCodeAt: aSelector)
                                to: aString
                                inClass: aClass
                                prettyDiffs: prettyDiffBoolean]
                ifFalse:
                        [aString copy]!