-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
isRemoval | ||
^ self mapper isMissing: self assetFileToWrite |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
changes-creation | ||
changeSetFromAssetFile: anAssetFile toAssetFile: anotherAssetFile | ||
(anAssetFile = anotherAssetFile) ifTrue: [^ GSEmptyChangeSet withMapper: self]. | ||
^ self changeSetClass withMapper: self from: anAssetFile to: anotherAssetFile | ||
(anAssetFile = anotherAssetFile) ifTrue: [ | ||
^ GSEmptyChangeSet | ||
withMapper: self | ||
isRemoval: (self isMissing: anotherAssetFile)]. | ||
^ self changeSetClass | ||
withMapper: self | ||
from: anAssetFile | ||
to: anotherAssetFile |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
changes-creation | ||
changeSetFromFSCommit: anFSCommit toFSCommit: anotherFSCommit | ||
(self hexHashIn: anFSCommit) = (self hexHashIn: anotherFSCommit) | ||
ifTrue: [^ GSEmptyChangeSet withMapper: self]. | ||
self | ||
hexHashesFrom: (self hexHashIn: anFSCommit) | ||
to: (self hexHashIn: anotherFSCommit) | ||
ifEqual: [:emptyChangeSet | ^ emptyChangeSet]. | ||
^ self | ||
changeSetFromAssetFile: (self loadAssetFileFrom: anFSCommit filesystem) | ||
toAssetFile: (self loadAssetFileFrom: anotherFSCommit filesystem) |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
changes-creation | ||
hexHashPath | ||
^ self path |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
isMissing: anAssetFileOrNil | ||
^ anAssetFileOrNil isNil |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
asset-creation | ||
loadAssetFileFrom: aFileSystem | ||
| reference | | ||
reference := aFileSystem referenceTo: self path. | ||
reference := self referenceIn: aFileSystem. | ||
reference isFile ifFalse: [^ nil]. | ||
^ reference readStreamDo: [:stream | | ||
(self canReadAssetFrom: stream) ifFalse: [^ nil]. | ||
self readAssetFrom: stream. "check for errors (will be thrown)" | ||
stream reset. | ||
GSAssetFile withMapper: self fromStream: stream] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
asset-creation | ||
referenceIn: aFileSystem | ||
^ aFileSystem referenceTo: self path |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
isIncludedRemoval | ||
^ (self changes allSatisfy: #isIncluded) and: [self isRemoval] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
isRemoval | ||
self subclassResponsibility. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
instance creation | ||
withMapper: aMapper operations: aCollection | ||
withMapper: aMapper from: aSnapshot operations: aCollection | ||
^ (self withMapper: aMapper) | ||
from: aSnapshot; | ||
addOperations: aCollection; | ||
yourself |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
instance creation | ||
withMapper: aMapper from: aSnapshot operations: aCollection conflicts: anotherCollection | ||
^ (self withMapper: aMapper from: aSnapshot operations: aCollection) | ||
addConflicts: anotherCollection; | ||
yourself |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
instance creation | ||
withMapper: aMapper from: aSnapshot patch: anMCPatch | ||
^ self | ||
withMapper: aMapper | ||
from: aSnapshot | ||
operations: anMCPatch operations |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
from: aSnapshot | ||
from := aSnapshot |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
from | ||
^ from |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
isRemoval | ||
^ self mapper isEmpty: (MCPatcher apply: self patch to: self from) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"from", | ||
"changes" ], | ||
"name" : "GSCodeChangeSet", | ||
"pools" : [ | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
changes-creation | ||
changeSetFromFSCommit: anFSCommit toFSCommit: anotherFSCommit | ||
(self hexHashIn: anFSCommit) = (self hexHashIn: anotherFSCommit) | ||
ifTrue: [^ GSEmptyChangeSet withMapper: self]. | ||
self | ||
hexHashesFrom: (self hexHashIn: anFSCommit) | ||
to: (self hexHashIn: anotherFSCommit) | ||
ifEqual: [:emptyChangeSet | ^ emptyChangeSet]. | ||
^ self | ||
changeSetFromSnapshot: (self loadSnapshotFrom: anFSCommit filesystem) | ||
toSnapshot: (self loadSnapshotFrom: anotherFSCommit filesystem) |