Skip to content

Commit

Permalink
Check for existing mappers file before importing .squot
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Apr 18, 2024
1 parent 782215c commit c39471f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ importSquotContents
| filesystem readStream loadOrder |
self mappers ifNotEmpty: [^ self].
filesystem := (self headFSCommit ifNil: [^ self]) filesystem.
(self mappersMapper hasMappersFile: filesystem) ifTrue: [^ self].
readStream := [filesystem readStreamOn: '.squot'] on: FileDoesNotExist do: [^ self].
loadOrder := STON fromStream: readStream.
loadOrder ifEmpty: [^ self].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"ifRepositoryDoesNotExist:" : "mad 12/22/2023 17:47",
"imageHash" : "mad 11/28/2023 19:19",
"import" : "mad 4/3/2024 14:02",
"importSquotContents" : "mad 4/18/2024 18:44",
"importSquotContents" : "mad 4/18/2024 18:46",
"importSquotContents:from:fallbackSerializer:" : "mad 4/15/2024 20:37",
"initialRemoteRefNameFor:" : "mad 9/18/2023 13:58",
"initialize" : "mad 11/28/2023 19:19",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testing
hasMappersFile: aFileSystem
^ (self referenceIn: aFileSystem) exists
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"changeSetsFromFSCommit:toImage:" : "mad 9/20/2023 12:51",
"changeSetsFromImage:toFSCommit:" : "mad 9/20/2023 12:51",
"changeSetsFromMappers:toMappers:old:common:new:in:" : "mad 2/20/2024 15:19",
"hasMappersFile:" : "mad 4/18/2024 18:33",
"loadMappersFromFSCommit:" : "mad 9/20/2023 12:05",
"loadMappersFromFileSystem:" : "mad 9/20/2023 12:05",
"loadMappersFromWorkingCopy:" : "mad 9/20/2023 12:09",
Expand Down

0 comments on commit c39471f

Please sign in to comment.