Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue/988 #989

Merged
merged 2 commits into from
Sep 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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