You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"When entities are not found in the base or target model we create additions and removals. This API method return a new set of changes that keeps only the top level additions and removals. If we add a package for example it will remove all its added classes methods and variables to keep a high level view of the changes."
detect: [ :targetParent | "We delegate the comparison to the resolver because it's possible a parent is the same but got renamed. This should deal with this case."
35
-
resolver is: baseParent sameAs: targetParent ]
36
-
ifNone: [ ^false"A parent of the base entity does not have a matching parent so we escape." ] ].
31
+
baseParents do: [ :baseParent |
32
+
targetParents
33
+
detect: [ :targetParent | "We delegate the comparison to the resolver because it's possible a parent is the same but got renamed. This should deal with this case."
34
+
resolver is: baseParent sameAs: targetParent ]
35
+
ifNone: [ ^false"A parent of the base entity does not have a matching parent so we escape." ] ].
"Since we did not treat the children with the resolver yet we do not check via the resolver if they are the same entities because even if they are renamed we will not know it yet."
116
-
intersect addAll: (baseChildren select: [ :baseChild | targetChildren anySatisfy: [ :targetChild | baseChild name = targetChild name ] ]).
117
+
intersect addAll:
118
+
(baseChildren select: [ :baseChild | targetChildren anySatisfy: [ :targetChild | baseChild name = targetChild name ] ]).
(baseDependency target isNotNil and: [ targetDependency target isNotNil ]) and: [ "<=== THIS SHOULD NOT BE HERE. Target should never be nil but verveineJ has a bug. Remove this once the bug is fixed."
(baseDependency source isNotNil and: [ targetDependency source isNotNil ]) and: [ "<=== THIS SHOULD NOT BE HERE. Target should never be nil but verveineJ has a bug. Remove this once the bug is fixed."
128
131
baseDependency source name = targetDependency source name ] ] ] ]).
0 commit comments