-
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.
- Loading branch information
1 parent
3aa941c
commit 45306f2
Showing
27 changed files
with
89 additions
and
18 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Base class for different types of versions, namely: IceVersion (normal versions) and IceForeignVersion (versions not managed by Ice). |
2 changes: 1 addition & 1 deletion
2
...IceForeignVersion.class/class/package..st → ...bstractVersion.class/class/forPackage..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 @@ | ||
instance creation | ||
package: package | ||
forPackage: package | ||
^ self new package: package; yourself |
3 changes: 3 additions & 0 deletions
3
Iceberg.package/IceAbstractVersion.class/instance/beCurrent.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,3 @@ | ||
as yet unclassified | ||
beCurrent | ||
"By default do not to anything, version should have a package manager that makes them current without Iceberg intervention." |
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
Iceberg.package/IceAbstractVersion.class/instance/updatedVersion.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,3 @@ | ||
patches | ||
updatedVersion | ||
^ self |
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,14 @@ | ||
{ | ||
"category" : "Iceberg-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "NicoPasserini 10/20/2016 15:48", | ||
"instvars" : [ | ||
"package" ], | ||
"name" : "IceAbstractVersion", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
3 changes: 3 additions & 0 deletions
3
Iceberg.package/IceCommitModelNew.class/instance/branchName.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,3 @@ | ||
initialization | ||
branchName | ||
^ self model repository branch name |
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 @@ | ||
initialization | ||
initialize | ||
model := nil asValueHolder. | ||
model whenChangedDo: [ commitButton label: 'Commit onto branch ', self branchName ]. | ||
super initialize |
3 changes: 0 additions & 3 deletions
3
Iceberg.package/IceForeignVersion.class/instance/beCurrent.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
Iceberg.package/IceForeignVersion.class/instance/mcVersion.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 @@ | ||
as yet unclassified | ||
mcVersion | ||
self halt. | ||
^ mcVersion ifNil: [ mcVersion := self package workingCopy loadedVersion ] |
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,9 @@ | ||
printing | ||
printOn: aStream | ||
aStream print: self class; | ||
nextPut: $(; | ||
nextPutAll: | ||
(mcVersion | ||
ifNotNil: [ mcVersion printString ] | ||
ifNil: [ self package name ]); | ||
nextPut: $). |
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,14 +1,14 @@ | ||
{ | ||
"category" : "Iceberg-Adapters", | ||
"category" : "Iceberg-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "NicoPasserini 9/14/2016 18:01", | ||
"instvars" : [ | ||
"package" ], | ||
"mcVersion" ], | ||
"name" : "IceForeignVersion", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"super" : "IceAbstractVersion", | ||
"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,3 +1,7 @@ | ||
querying | ||
versionFor: package | ||
^ self loadedVersions at: package ifAbsentPut: [ package computeLoadedVersion ] | ||
^ self loadedVersions | ||
at: package | ||
ifPresent: #updatedVersion | ||
ifAbsentPut: [ package computeLoadedVersion ] | ||
|
2 changes: 1 addition & 1 deletion
2
Iceberg.package/IceMetacelloRepositoryAdapter.class/instance/addTo..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 @@ | ||
as yet unclassified | ||
addTo: aMCRepositoryGroup | ||
"For now do not add me as an MCRepository" | ||
^ aMCRepositoryGroup addBasicRepository: self |
3 changes: 3 additions & 0 deletions
3
Iceberg.package/IceMetacelloRepositoryAdapter.class/instance/isValid.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,3 @@ | ||
as yet unclassified | ||
isValid | ||
^ 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
4 changes: 4 additions & 0 deletions
4
Iceberg.package/IceSavedPackageVersion.class/class/forPackage..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 @@ | ||
instance creation | ||
forPackage: package | ||
"Use fromCommit:package: instead" | ||
self shouldNotImplement |
3 changes: 0 additions & 3 deletions
3
Iceberg.package/IceSavedPackageVersion.class/instance/package..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
Iceberg.package/IceSavedPackageVersion.class/instance/package.st
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
I am a temporary place holder for a version. Someone asked for a version but the package is still being loaded, at some point a real version will replace me. In the meanwhile I can respond to some messages as a version would do. |
6 changes: 6 additions & 0 deletions
6
Iceberg.package/IceTemporaryVersion.class/instance/updatedVersion.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 @@ | ||
patches | ||
updatedVersion | ||
| newVersion | | ||
newVersion := self package computeLoadedVersion. | ||
self package repository loadedCode versionLoaded: newVersion. | ||
^ newVersion |
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,14 @@ | ||
{ | ||
"category" : "Iceberg-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "NicoPasserini 10/20/2016 18:24", | ||
"instvars" : [ | ||
], | ||
"name" : "IceTemporaryVersion", | ||
"pools" : [ | ||
], | ||
"super" : "IceAbstractVersion", | ||
"type" : "normal" } |
8 changes: 8 additions & 0 deletions
8
Iceberg.package/MCWorkingCopy.extension/instance/loadedVersion.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 @@ | ||
*Iceberg-Adapters | ||
loadedVersion | ||
self ancestors do: [ :ancestor | | ||
(self repositoryGroup | ||
versionWithInfo: ancestor | ||
ifNone: [ MCRepositoryGroup default versionWithInfo: ancestor ifNone: [] ]) | ||
ifNotNil: [ :version | ^ version ] | ||
]. |
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,2 @@ | ||
{ | ||
"name" : "MCWorkingCopy" } |