forked from pharo-vcs/iceberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
138 additions
and
68 deletions.
There are no files selected for viewing
8 changes: 2 additions & 6 deletions
8
Iceberg-Libgit-Tonel.package/IceLibgitTonelReader.class/instance/iceVersion..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,13 +1,9 @@ | ||
accessing | ||
iceVersion: anObject | ||
| repository packageDirectoryName directoryName | | ||
| repository packageDirectoryName | | ||
iceVersion := anObject. | ||
repository := iceVersion commit repository. | ||
package := iceVersion package. | ||
|
||
packageDirectoryName := iceVersion commit writerClass directoryNameFor: package. | ||
directoryName := repository subdirectory isEmptyOrNil | ||
ifTrue: [ packageDirectoryName ] | ||
ifFalse: [ repository subdirectory, '/', packageDirectoryName ]. | ||
|
||
self packageDirectory: directoryName | ||
self packageDirectory: (repository subdirectoryPath / packageDirectoryName) pathString |
4 changes: 4 additions & 0 deletions
4
Iceberg-Libgit.package/IceLibgitRepository.class/instance/subdirectoryPath.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,4 @@ | ||
API-accessing | ||
subdirectoryPath | ||
|
||
^ RelativePath with: self subdirectory |
4 changes: 4 additions & 0 deletions
4
Iceberg-Libgit.package/IceLibgitRepository.class/instance/subdirectoryReference.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,4 @@ | ||
API-accessing | ||
subdirectoryReference | ||
|
||
^ self location resolve: self subdirectoryPath |
2 changes: 1 addition & 1 deletion
2
Iceberg-Tests.package/IceAbstractTestFactory.class/instance/newRepositoryNamed..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 | ||
newRepositoryNamed: projectName | ||
|
||
self subclassResponsibility | ||
^ self newRepositoryNamed: projectName withSubdirectory: '' |
4 changes: 4 additions & 0 deletions
4
...sts.package/IceAbstractTestFactory.class/instance/newRepositoryNamed.withSubdirectory..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,4 @@ | ||
initialization | ||
newRepositoryNamed: projectName withSubdirectory: aSubdirectory | ||
|
||
self subclassResponsibility |
4 changes: 4 additions & 0 deletions
4
Iceberg-Tests.package/IceBasicRepositoryFixture.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
initialization | ||
initialize | ||
super initialize. | ||
subdirectory := ''. |
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
4 changes: 4 additions & 0 deletions
4
Iceberg-Tests.package/IceBasicRepositoryFixture.class/instance/subdirectory..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,4 @@ | ||
running | ||
subdirectory: aSubdirectory | ||
|
||
subdirectory := aSubdirectory |
4 changes: 4 additions & 0 deletions
4
Iceberg-Tests.package/IceBasicRepositoryFixture.class/instance/subdirectory.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,4 @@ | ||
running | ||
subdirectory | ||
|
||
^ subdirectory |
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
3 changes: 2 additions & 1 deletion
3
...ory.class/instance/newRepositoryNamed..st → ...e/newRepositoryNamed.withSubdirectory..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
4 changes: 2 additions & 2 deletions
4
...ory.class/instance/newRepositoryNamed..st → ...e/newRepositoryNamed.withSubdirectory..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
Empty file.
6 changes: 6 additions & 0 deletions
6
...ge/IceSinglePackageLocalGitRepositoryWithDotSubdirectoryTest.class/instance/newFixture.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,6 @@ | ||
running | ||
newFixture | ||
|
||
^ IceSinglePackageFixture inGit | ||
subdirectory: '.'; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
...ageLocalGitRepositoryWithDotSubdirectoryTest.class/instance/testCodeSubdirectoryIsRoot.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,4 @@ | ||
running | ||
testCodeSubdirectoryIsRoot | ||
|
||
self assert: self repository location equals: self repository subdirectoryReference |
11 changes: 11 additions & 0 deletions
11
...s.package/IceSinglePackageLocalGitRepositoryWithDotSubdirectoryTest.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "IceSinglePackageLocalRepositoryTest", | ||
"category" : "Iceberg-Tests-Git", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "IceSinglePackageLocalGitRepositoryWithDotSubdirectoryTest", | ||
"type" : "normal" | ||
} |
Empty file.
6 changes: 6 additions & 0 deletions
6
...ckage/IceSinglePackageLocalGitRepositoryWithSubdirectoryTest.class/instance/newFixture.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,6 @@ | ||
running | ||
newFixture | ||
|
||
^ IceSinglePackageFixture inGit | ||
subdirectory: 'src'; | ||
yourself |
11 changes: 11 additions & 0 deletions
11
...ests.package/IceSinglePackageLocalGitRepositoryWithSubdirectoryTest.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "IceSinglePackageLocalRepositoryTest", | ||
"category" : "Iceberg-Tests-Git", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "IceSinglePackageLocalGitRepositoryWithSubdirectoryTest", | ||
"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
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
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
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
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
4 changes: 2 additions & 2 deletions
4
Iceberg.package/IceChangeImporter.class/instance/ensureSourceCodeDirectoryIn..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
4 changes: 4 additions & 0 deletions
4
Iceberg.package/IceEmptyNode.class/instance/firstNodeSuchThat..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,4 @@ | ||
enumerating | ||
firstNodeSuchThat: conditionBlock | ||
|
||
^ self firstNodeSuchThat: conditionBlock ifNone: [ NotFound signalFor: conditionBlock ] |
7 changes: 7 additions & 0 deletions
7
Iceberg.package/IceEmptyNode.class/instance/firstNodeSuchThat.ifNone..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 @@ | ||
enumerating | ||
firstNodeSuchThat: conditionBlock ifNone: noneBlock | ||
|
||
(conditionBlock value: self) | ||
ifTrue: [ ^ self ]. | ||
|
||
^ noneBlock value |
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,4 @@ | ||
accessing | ||
path | ||
|
||
^ RelativePath new |
5 changes: 0 additions & 5 deletions
5
Iceberg.package/IceUnbornProject.class/instance/packagesFrom..st
This file was deleted.
Oops, something went wrong.