Skip to content

Commit

Permalink
Merge pull request #989 from tesonep/issue/988
Browse files Browse the repository at this point in the history
issue/988
  • Loading branch information
guillep authored Sep 5, 2018
2 parents 34d68a2 + df9ce8b commit 45d8f6f
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 39 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
private-changes
loadChangesInWorkingCopy: aTree

| visitor |
visitor := IceRingWorkingCopyChangerVisitor on: self.

self ignoreNotificationsDuring: [
aTree accept: visitor.
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
environment

^ self workingCopy environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
packages

^ self workingCopy packages
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
visiting
visitPackage: anIcePackageDefinition

workingCopy
impactPackageChanges: anIcePackageDefinition
currentNode: currentNode
| visitor |

anIcePackageDefinition categories do: [ :categoryName |
self workingCopy packages
detect: [ :package | categoryName beginsWith: package name ]
ifFound: [ :package |
(self environment ensurePackageNamed: package name)
addClassTag: categoryName ]
ifNone: [ self environment ensurePackageNamed: categoryName ] ].

visitor := IceRingWorkingCopyChangerVisitor on: self workingCopy.
currentNode childrenDo: [ :each | each accept: visitor ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
workingCopy

^ workingCopy
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*Iceberg-TipUI
description
^ 'Checkout ALL packages in the repository, in alphabetical order'
^ 'Checkout ALL packages in the repository'
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*Iceberg-TipUI
description
^ 'Checkout packages ALREADY LOADED in the image, in alphabetical order'
^ 'Checkout packages ALREADY LOADED in the image'

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
private-changes
loadChangesInWorkingCopy: aTree

| visitor |
visitor := IceWorkingCopyPatcherVisitor on: self repository.
aTree accept: visitor.

self ignoreNotificationsDuring: [
aTree accept: (IceWorkingCopyPatcherVisitor on: self repository)
]
visitor load.
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialization
initialize
super initialize.
loader := MCPackageLoader new
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
loading
load
loader load
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
visiting
visitPackage: anIcePackageDefinition

self repository workingCopy
impactPackageChanges: anIcePackageDefinition
currentNode: currentNode

(self repository packageNamed: anIcePackageDefinition name) isLoaded
ifFalse: [ ^ self ].

currentNode accept: (IceMCSnapshotPatchVisitor new
patcher: loader;
yourself).
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"repository"
"repository",
"loader"
],
"name" : "IceWorkingCopyPatcherVisitor",
"type" : "normal"
Expand Down

0 comments on commit 45d8f6f

Please sign in to comment.