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.
- Extend commits to get properties from them - `IceRepositoryProperties new` should be correctly (lazily) initialized - make Filetree migration condition more robust
- Loading branch information
Showing
10 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
Iceberg-Libgit.package/IceRepositoryProperties.class/instance/at..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 @@ | ||
accessing | ||
at: aKey | ||
|
||
^ properties at: aKey | ||
^ self properties at: aKey |
2 changes: 1 addition & 1 deletion
2
Iceberg-Libgit.package/IceRepositoryProperties.class/instance/at.put..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 @@ | ||
accessing | ||
at: aKey put: aValue | ||
|
||
properties at: aKey put: aValue | ||
self properties at: aKey put: aValue |
2 changes: 1 addition & 1 deletion
2
Iceberg-Libgit.package/IceRepositoryProperties.class/instance/properties.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 @@ | ||
private | ||
properties | ||
^ properties | ||
^ properties ifNil: [ properties := Dictionary new ] |
2 changes: 1 addition & 1 deletion
2
Iceberg-Libgit.package/IceRepositoryProperties.class/instance/readerClass.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,6 @@ | ||
accessing | ||
readerClass | ||
^ properties | ||
^ self properties | ||
at: 'format' | ||
ifPresent: [ :v | TIceRepositoryReader users detect: [ :each | each id = v ] ] | ||
ifAbsent: [ TIceRepositoryReader users detect: #isLegacyDefault ] |
2 changes: 1 addition & 1 deletion
2
Iceberg-Libgit.package/IceRepositoryProperties.class/instance/writerClass.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
8 changes: 6 additions & 2 deletions
8
...Plugin-Migration.package/IceFiletreeToTonelCommand.class/class/canBeExecutedInContext..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,8 @@ | ||
testing | ||
canBeExecutedInContext: aToolContext | ||
self flag: #todo. "Demeters law" | ||
^ aToolContext repositoryModel entity writerClass id = #filetree | ||
|
||
| repository | | ||
repository := aToolContext repositoryModel entity. | ||
^ repository isMissing not | ||
and: [ repository workingCopy isDetached not | ||
and: [ repository workingCopy writerClass id = #filetree ] ] |
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-properties | ||
properties | ||
|
||
^ IceRepositoryProperties new |
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 @@ | ||
accessing | ||
API-properties | ||
writerClass | ||
^ self commit writerClass | ||
|
||
^ self properties writerClass |
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 @@ | ||
accessing | ||
commit | ||
self shouldBeImplemented. |
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-properties | ||
writerClass | ||
|
||
^ self referenceCommit writerClass |