-
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.
- Loading branch information
Showing
116 changed files
with
468 additions
and
107 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/Squot.package/SqueakWorkingCopy.class/class/deriveName..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,9 @@ | ||
registering | ||
deriveName: aString | ||
| current suffix | | ||
current := aString. | ||
suffix := 2. | ||
[self isNameRegistered: current] whileTrue: [ | ||
current := aString, suffix. | ||
suffix := suffix + 1]. | ||
^ current |
2 changes: 1 addition & 1 deletion
2
src/Squot.package/SqueakWorkingCopy.class/instance/allMappers.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 @@ | ||
accessing | ||
allMappers | ||
^ self mappers, {self mappersMapper} | ||
^ self mappers, {self metadataMapper} |
2 changes: 1 addition & 1 deletion
2
src/Squot.package/SqueakWorkingCopy.class/instance/changeSetsFromFSCommit.toFSCommit..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 @@ | ||
changes-creation | ||
changeSetsFromFSCommit: anFSCommit toFSCommit: anotherFSCommit | ||
^ self mappersMapper | ||
^ self metadataMapper | ||
changeSetsFromFSCommit: anFSCommit | ||
toFSCommit: anotherFSCommit | ||
in: self |
2 changes: 1 addition & 1 deletion
2
src/Squot.package/SqueakWorkingCopy.class/instance/changeSetsFromFSCommitToImage..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 @@ | ||
changes-creation | ||
changeSetsFromFSCommitToImage: anFSCommit | ||
^ self mappersMapper changeSetsFromFSCommit: anFSCommit toImage: self | ||
^ self metadataMapper changeSetsFromFSCommit: anFSCommit toImage: self |
2 changes: 1 addition & 1 deletion
2
src/Squot.package/SqueakWorkingCopy.class/instance/changeSetsFromImageToFSCommit..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 @@ | ||
changes-creation | ||
changeSetsFromImageToFSCommit: anFSCommit | ||
^ self mappersMapper changeSetsFromImage: self toFSCommit: anFSCommit | ||
^ self metadataMapper changeSetsFromImage: self toFSCommit: anFSCommit |
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
6 changes: 6 additions & 0 deletions
6
src/Squot.package/SqueakWorkingCopy.class/instance/deriveName..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 @@ | ||
accessing | ||
deriveName: aString | ||
| derived | | ||
derived := self class deriveName: aString. | ||
self name: derived. | ||
^ derived |
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: 0 additions & 3 deletions
3
src/Squot.package/SqueakWorkingCopy.class/instance/mappersMapper.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/Squot.package/SqueakWorkingCopy.class/instance/mergeFSCommit.into.withBase..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
5 changes: 5 additions & 0 deletions
5
src/Squot.package/SqueakWorkingCopy.class/instance/metadata..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,5 @@ | ||
accessing | ||
metadata: aMetadata | ||
self | ||
nameIfTakenDeriveAndInform: aMetadata name; | ||
mappers: aMetadata mappers copy. |
6 changes: 6 additions & 0 deletions
6
src/Squot.package/SqueakWorkingCopy.class/instance/metadata.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 @@ | ||
accessing | ||
metadata | ||
^ SquotMetadata new | ||
name: self name; | ||
mappers: self mappers copy; | ||
yourself |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SqueakWorkingCopy.class/instance/metadataMapper.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 @@ | ||
mappers | ||
metadataMapper | ||
^ SquotMetadataMapper 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,10 +1,3 @@ | ||
accessing | ||
name: aString | ||
self name = aString ifTrue: [^ self]. | ||
self isRegistered ifFalse: [^ self basicName: aString]. | ||
(self class isNameRegistered: aString) | ||
ifTrue: [^ self error: 'Cannot rename to a name that is already taken.']. | ||
self | ||
unregister; | ||
basicName: aString; | ||
register. | ||
self name: aString ifTaken: [self error: 'Cannot rename to a name that is already taken.']. |
9 changes: 9 additions & 0 deletions
9
src/Squot.package/SqueakWorkingCopy.class/instance/name.ifTaken..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,9 @@ | ||
accessing | ||
name: aString ifTaken: aBlock | ||
self name = aString ifTrue: [^ self]. | ||
self isRegistered ifFalse: [^ self basicName: aString]. | ||
(self class isNameRegistered: aString) ifTrue: [^ aBlock value]. | ||
self | ||
unregister; | ||
basicName: aString; | ||
register. |
5 changes: 5 additions & 0 deletions
5
src/Squot.package/SqueakWorkingCopy.class/instance/name.ifTakenDeriveAnd..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,5 @@ | ||
accessing | ||
name: aString ifTakenDeriveAnd: aBlock | ||
self name: aString ifTaken: [ | derived | | ||
derived := self deriveName: aString. | ||
aBlock cull: derived]. |
5 changes: 5 additions & 0 deletions
5
src/Squot.package/SqueakWorkingCopy.class/instance/nameIfTakenDeriveAndInform..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,5 @@ | ||
accessing | ||
nameIfTakenDeriveAndInform: aString | ||
self name: aString ifTakenDeriveAnd: [:derived | | ||
self inform: ('The project name {1} is already taken. The project has been renamed to {2}.' | ||
format: {aString printString. derived printString})]. |
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: 0 additions & 3 deletions
3
src/Squot.package/SquotMappersChangeSet.class/instance/materializeIn..st
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotMappersChangeSet.class/instance/newValueAfterMaterializeIn..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 @@ | ||
accessing | ||
newValueAfterMaterializeIn: aWorkingCopy | ||
^ self newMappersAfterMaterializeIn: aWorkingCopy |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotMappersChangeSet.class/instance/newValueAfterSerializeInto..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 @@ | ||
accessing | ||
newValueAfterSerializeInto: aFileSystem | ||
^ self newMappersAfterSerializeInto: aFileSystem |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotMappersChangeSet.class/instance/property.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 @@ | ||
accessing | ||
property | ||
^ #mappers |
4 changes: 0 additions & 4 deletions
4
src/Squot.package/SquotMappersChangeSet.class/instance/serializeInto..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
3 changes: 0 additions & 3 deletions
3
src/Squot.package/SquotMappersMapper.class/instance/hasMappersFile..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/Squot.package/SquotMappersMapper.class/instance/loadMappersFromFSCommit..st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/Squot.package/SquotMappersMapper.class/instance/loadMappersFromFileSystem..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/Squot.package/SquotMappersMapper.class/instance/loadMappersFromWorkingCopy..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/Squot.package/SquotMappersMapper.class/instance/mappedPaths.st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/Squot.package/SquotMappersMapper.class/instance/referenceIn..st
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/Squot.package/SquotMappersMapper.class/methodProperties.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotMetadata.class/class/currentVersion.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 @@ | ||
accessing | ||
currentVersion | ||
^ 1 |
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 @@ | ||
comparing | ||
= anObject | ||
self class = anObject class ifFalse: [^ false]. | ||
self name = anObject name ifFalse: [^ false]. | ||
self mappers asSet = anObject mappers asSet ifFalse: [^ false]. | ||
^ 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
comparing | ||
hash | ||
^ self name hash bitXor: self mappers asSet hash |
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 @@ | ||
initialize-release | ||
initialize | ||
super initialize. | ||
self version ifNotNil: [self setCurrentVersion]. |
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 | ||
mappers: anOrderedCollection | ||
mappers := anOrderedCollection |
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 | ||
mappers | ||
^ mappers |
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 | ||
name: aString | ||
name := aString |
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 | ||
name | ||
^ name |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotMetadata.class/instance/setCurrentVersion.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 @@ | ||
accessing | ||
setCurrentVersion | ||
self version: self class currentVersion. |
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 | ||
version: aNumber | ||
version := aNumber |
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 | ||
version | ||
^ version |
Oops, something went wrong.