-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge fixes from 'develop' into latest-release
- Loading branch information
Showing
43 changed files
with
143 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#id : UUID [ '207bca0df934e041b1e79b9ff315b588' ], | ||
#objectsReplacedByNames : true, | ||
#slotOverrides : { }, | ||
#objectsReplacedByNames : true, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#id : UUID [ '7e0624d4d6eca84f879c365f65ae74be' ], | ||
#objectsReplacedByNames : true, | ||
#slotOverrides : { }, | ||
#objectsReplacedByNames : true, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
1 change: 1 addition & 0 deletions
1
...Squot.package/MCClassDefinition.extension/instance/browseFromSquotWorkingCopyArtifact..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*Squot-Tools | ||
browseFromSquotWorkingCopyArtifact: aSquotWorkingCopyArtifact | ||
aSquotWorkingCopyArtifact isLoaded ifFalse: [^ self browse]. | ||
^ (self actualClassIn: (PackageInfo squotEnvironmentOf: aSquotWorkingCopyArtifact)) | ||
ifNotNil: [:class | class browse] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
....package/MCClassTraitDefinition.extension/instance/browseFromSquotWorkingCopyArtifact..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
*Squot-Tools | ||
browseFromSquotWorkingCopyArtifact: aSquotWorkingCopyArtifact | ||
| trait | | ||
aSquotWorkingCopyArtifact isLoaded ifFalse: [^ self browse]. | ||
trait := (PackageInfo squotEnvironmentOf: aSquotWorkingCopyArtifact) | ||
classOrTraitNamed: self baseTrait. | ||
^ trait ifNotNil: [trait theMetaClass browse] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Squot.package/MCConflict.extension/instance/browseFromSquotWorkingCopyArtifact..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*Squot-Tools | ||
browseFromSquotWorkingCopyArtifact: aSquotWorkingCopyArtifact | ||
aSquotWorkingCopyArtifact isLoaded ifFalse: [^ self browse]. | ||
^ self definition browseFromSquotWorkingCopyArtifact: aSquotWorkingCopyArtifact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...quot.package/MCMethodDefinition.extension/instance/browseFromSquotWorkingCopyArtifact..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*Squot-Tools | ||
browseFromSquotWorkingCopyArtifact: aSquotWorkingCopyArtifact | ||
aSquotWorkingCopyArtifact isLoaded ifFalse: [^ self browse]. | ||
^ (self actualClassIn: (PackageInfo squotEnvironmentOf: aSquotWorkingCopyArtifact)) | ||
ifNotNil: [:class | ToolSet browse: class selector: selector] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ackage/MCOrganizationDefinition.extension/instance/browseFromSquotWorkingCopyArtifact..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*Squot-Tools | ||
browseFromSquotWorkingCopyArtifact: aSquotWorkingCopyArtifact | ||
categories ifEmpty: [^ self]. | ||
aSquotWorkingCopyArtifact isLoaded ifFalse: [^ self browse]. | ||
^ (PackageInfo squotEnvironmentOf: aSquotWorkingCopyArtifact) beCurrentDuring: | ||
[ToolSet browseCategory: categories anyOne] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...quot.package/MCScriptDefinition.extension/instance/browseFromSquotWorkingCopyArtifact..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/Squot.package/SquotChangesChooser.class/instance/environment.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Smalltalk tools | ||
environment | ||
| workingCopyArtifact | | ||
self selectedNode ifNil: [^ super environment]. | ||
^ PackageInfo squotEnvironmentOf: | ||
(self workingCopy artifactAt: self selectedNode artifactDiff path | ||
ifAbsent: [^ super environment]) | ||
workingCopyArtifact := self workingCopy artifactAt: self selectedNode artifactDiff path ifAbsent: [^ super environment]. | ||
workingCopyArtifact isLoaded ifFalse: [^ super environment]. | ||
^ PackageInfo squotEnvironmentOf: workingCopyArtifact |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotChangesChooser.class/instance/selectedClass.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Squot.package/SquotDiffExplorer.class/instance/inspectChangedArtifactOfSelectedNode.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
inspectChangedArtifactOfSelectedNode | ||
self selectedNode content isRemoval ifTrue: [^ SquotGUI inform: 'Object was removed']. | ||
self selectedNode content right explore. |
1 change: 1 addition & 0 deletions
1
src/Squot.package/SquotDiffExplorer.class/instance/inspectOriginalArtifactOfSelectedNode.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
inspectOriginalArtifactOfSelectedNode | ||
self selectedNode content isAddition ifTrue: [^ SquotGUI inform: 'Object did not exist yet']. | ||
self selectedNode content left explore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
src/Squot.package/SquotDiffNode.class/instance/browseIncomingEdition..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
browsing | ||
browseIncomingEdition: aWorkingCopy | ||
self browse: self content right. | ||
browseIncomingEdition: aWorkingCopy | ||
self browse: | ||
((((self content respondsTo: #isMerge) and: [self content isMerge]) | ||
or: [(self content respondsTo: #isConflict) and: [self content isConflict]]) | ||
ifTrue: [self content incoming] | ||
ifFalse: [self content right]) |
6 changes: 5 additions & 1 deletion
6
src/Squot.package/SquotDiffNode.class/instance/browseOriginalEdition..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
browsing | ||
browseOriginalEdition: aWorkingCopy | ||
self browse: self content left. | ||
self browse: | ||
((((self content respondsTo: #isMerge) and: [self content isMerge]) | ||
or: [(self content respondsTo: #isConflict) and: [self content isConflict]]) | ||
ifTrue: [self content base] | ||
ifFalse: [self content left]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/Squot.package/SquotDiffNode.class/instance/withPackageEnvironmentDo..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
withPackageEnvironmentDo: aBlock | ||
| workingCopyArtifact | | ||
workingCopyArtifact := workingCopy artifactAt: artifactDiff path ifAbsent: []. | ||
^ (workingCopyArtifact isNil or: [workingCopyArtifact isLoaded not]) | ||
ifTrue: [aBlock value] | ||
ifFalse: [(PackageInfo squotEnvironmentOf: workingCopyArtifact) beCurrentDuring: aBlock] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/Squot.package/SquotMergeTool.class/instance/inspectOriginalArtifactOfSelectedNode.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
actions | ||
inspectOriginalArtifactOfSelectedNode | ||
(self selectedNode content respondsTo: #isModification) | ||
ifTrue: [self selectedNode content left explore] | ||
ifFalse: [self selectedNode content working explore]. | ||
(((self selectedNode content respondsTo: #isMerge) and: [self selectedNode content isMerge]) | ||
or: [(self selectedNode content respondsTo: #isConflict) and: [self selectedNode content isConflict]]) | ||
ifTrue: [self selectedNode content working explore] | ||
ifFalse: [^ super inspectOriginalArtifactOfSelectedNode] |
11 changes: 4 additions & 7 deletions
11
src/Squot.package/SquotMergeTool.class/instance/inspectProposedArtifactOfSelectedNode.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
actions | ||
inspectProposedArtifactOfSelectedNode | ||
(self selectedNode content respondsTo: #isModification) | ||
ifTrue: | ||
[self selectedNode content isRemoval | ||
ifTrue: [self inform: 'Object has been removed.'] | ||
ifFalse: [self selectedNode content right explore]] | ||
ifFalse: | ||
[self selectedNode content incoming explore]. | ||
(((self selectedNode content respondsTo: #isMerge) and: [self selectedNode content isMerge]) | ||
or: [(self selectedNode content respondsTo: #isConflict) and: [self selectedNode content isConflict]]) | ||
ifTrue: [self selectedNode content incoming explore] | ||
ifFalse: [^ super inspectProposedArtifactOfSelectedNode] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/Squot.package/SquotMergeToolTest.class/instance/testArtifactMergeWithoutConflicts.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
tests | ||
testArtifactMergeWithoutConflicts | ||
| left right base path artifact merge contentMerge mergeNode acceptReturned | | ||
path := 'common-artifact'. | ||
artifact := SquotArtifact new path: path; content: (left := SquotArtifactContentMock new). | ||
left whenMergedReturn: (contentMerge := SquotMergeMock new); | ||
whenComparedReturnMock. | ||
contentMerge hasConflicts: false. | ||
right := SquotArtifactContentMock new. | ||
base := SquotArtifactContentMock new. | ||
base whenComparedReturnMock. | ||
merge := SquotMerge | ||
into: (SquotSnapshot builder | ||
add: artifact; | ||
buildSnapshot) | ||
merge: (SquotSnapshot builder | ||
add: (artifact copy content: right); | ||
buildSnapshot) | ||
basedOn: (SquotSnapshot builder | ||
add: (artifact copy content: base); | ||
buildSnapshot). | ||
self openToolAndTestOn: merge. | ||
mergeNode := tool rootNodes detect: [:each | ((tool nodeLabelOf: each) asString includesSubstring: 'common-artifact') and: [(tool nodeLabelOf: each) asString includesSubstring: 'merge']] ifNone: [self fail: 'Merge node not found']. | ||
self deny: mergeNode anyChildNeedsChoice. | ||
tool selectNode: mergeNode; deactivateSelectedNode. | ||
self closeDialogPossiblyOpenedDuring: [tool accept. acceptReturned := true] | ||
timeoutMsecs: 5. | ||
self assert: acceptReturned == true. | ||
self deny: (self resultIncludesDiffAt: path) "nothing changes in working copy". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.