-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1024 from guillep/issue/1023
Issue/1023
- Loading branch information
Showing
21 changed files
with
70 additions
and
42 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
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,4 +1,5 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
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
19 changes: 9 additions & 10 deletions
19
Iceberg-GitCommand.package/IceGitCommand.class/properties.json
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,15 +1,14 @@ | ||
{ | ||
"category" : "Iceberg-GitCommand", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "NicoPasserini 5/24/2016 11:11", | ||
"super" : "Object", | ||
"category" : "Iceberg-GitCommand", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"directory", | ||
"command" ], | ||
"command" | ||
], | ||
"name" : "IceGitCommand", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } | ||
"type" : "normal" | ||
} |
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,2 +1 @@ | ||
{ | ||
} | ||
{ } |
5 changes: 4 additions & 1 deletion
5
Iceberg-Libgit.package/IceGitIndex.class/instance/commitWithMessage.andParents..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: 7 additions & 0 deletions
7
Iceberg-Libgit.package/IceLibgitRepository.class/instance/free.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 @@ | ||
private-libgit | ||
free | ||
|
||
(handle isNil or: [ handle isNull ]) | ||
ifFalse: [ | ||
handle free. | ||
handle := nil ] |
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 |
---|---|---|
|
@@ -6,13 +6,13 @@ newRepositoryNamed: projectName withSubdirectory: aSubdirectory | |
location: self location / projectName; | ||
subdirectory: aSubdirectory; | ||
createNewRepositoryNamed: projectName. | ||
(OSEnvironment current at: 'CI' ifAbsent: [ ]) = 'true' | ||
(OSEnvironment current at: 'CI' ifAbsent: [ 'false' ]) asLowercase = 'true' | ||
ifTrue: [ Transcript | ||
show: 'Setting user information for CI'; | ||
cr. | ||
IceGitCommand | ||
in: repository location | ||
execute: {'config' . '--global' . 'user.email' . '"[email protected]"'}. | ||
execute: {'config' . '--global' . 'user.email' . '"[email protected]"'}. | ||
IceGitCommand | ||
in: repository location | ||
execute: {'config' . '--global' . 'user.name' . '"Iceberg CI"'} ]. | ||
|
5 changes: 4 additions & 1 deletion
5
Iceberg-Tests.package/IceGitTestFactory.class/instance/tearDownWithRepository..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,8 @@ | ||
initialization | ||
tearDownWithRepository: aRepository | ||
|
||
aRepository ifNotNil: [aRepository location ifNotNil: #ensureDeleteAll ]. | ||
aRepository ifNotNil: [ | ||
aRepository free. | ||
Smalltalk garbageCollect. | ||
aRepository location ifNotNil: #ensureDeleteAll ]. | ||
self remoteFileUrl asFileReference ensureDeleteAll |
4 changes: 3 additions & 1 deletion
4
Iceberg-Tests.package/IceNotYetClonedRepositoryFixture.class/instance/initialize.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,7 @@ | ||
running | ||
initialization | ||
initialize | ||
super initialize. | ||
location := FileLocator imageDirectory / 'test' / UUID new asString. | ||
super initialize. | ||
packageName1 := 'IceMockPackage1'. | ||
packageName2 := 'IceMockPackage2'. |
2 changes: 1 addition & 1 deletion
2
Iceberg-Tests.package/IceNotYetClonedRepositoryFixture.class/instance/location.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,4 @@ | ||
initialization | ||
location | ||
|
||
^ FileLocator imageDirectory / 'test' | ||
^ location |
1 change: 1 addition & 0 deletions
1
Iceberg-Tests.package/IceNotYetClonedRepositoryFixture.class/instance/tearDown.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 @@ | ||
running | ||
tearDown | ||
|
||
Smalltalk garbageCollect. | ||
self location ifNotNil: #ensureDeleteAll. |
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
2 changes: 1 addition & 1 deletion
2
Iceberg-Tests.package/IceParameterizedTestCase.class/instance/isCI.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,3 @@ | ||
running | ||
isCI | ||
^ (OSEnvironment current at: 'CI' ifAbsent: [ ]) = 'true' | ||
^ (OSEnvironment current at: 'CI' ifAbsent: [ 'false' ]) asLowercase = 'true' |
7 changes: 7 additions & 0 deletions
7
Iceberg.package/IceChangeImporter.class/instance/ensureDirectoryAtPath.inNode..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 @@ | ||
private | ||
ensureDirectoryAtPath: aPathSegments inNode: aNode | ||
|
||
| firstChild | | ||
aPathSegments ifEmpty: [ ^ aNode ]. | ||
firstChild := self ensureDirectoryNamed: aPathSegments first inNode: aNode. | ||
^ self ensureDirectoryAtPath: aPathSegments allButFirst inNode: firstChild |
8 changes: 8 additions & 0 deletions
8
Iceberg.package/IceChangeImporter.class/instance/ensureDirectoryNamed.inNode..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,8 @@ | ||
private | ||
ensureDirectoryNamed: aName inNode: aNode | ||
|
||
| newNode | | ||
aNode childAt: aName ifPresent: [ :node | | ||
self assert: node value isDirectoryDefinition. | ||
^ node ]. | ||
^ aNode addChild: (IceDirectoryDefinition named: aName) |
11 changes: 3 additions & 8 deletions
11
Iceberg.package/IceChangeImporter.class/instance/ensureSourceCodeParentNodeIn..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,11 +1,6 @@ | ||
private | ||
ensureSourceCodeParentNodeIn: aNode | ||
| codeSubdirectoryPathString | | ||
codeSubdirectoryPathString := diff repository subdirectoryPath pathString. | ||
(codeSubdirectoryPathString isEmpty) | ||
ifTrue: [ ^ aNode ]. | ||
|
||
aNode childAt: codeSubdirectoryPathString ifPresent: [ :node | | ||
self assert: node value isDirectoryDefinition. | ||
^ node ]. | ||
^ aNode addChild: (IceDirectoryDefinition named: codeSubdirectoryPathString) | ||
^ self | ||
ensureDirectoryAtPath: diff repository subdirectoryPath segments | ||
inNode: aNode |
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