-
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.
- Loading branch information
Showing
6 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...tS-Core.package/GSMetadataChangeSet.class/instance/collidingMappersAfterSerializeInto..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,7 @@ | ||
collisions | ||
collidingMappersAfterSerializeInto: aFileSystem | ||
| mappersChangeSet | | ||
mappersChangeSet := self changeSets | ||
detect: [:each | each isKindOf: SquotMetadataMappersChangeSet] | ||
ifNone: [^ {}]. | ||
^ mappersChangeSet collidingMappersAfterSerializeInto: aFileSystem |
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
14 changes: 14 additions & 0 deletions
14
....package/GSMetadataMappersChangeSet.class/instance/collidingMappersAfterSerializeInto..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,14 @@ | ||
collisions | ||
collidingMappersAfterSerializeInto: aFileSystem | ||
| mappers seen | | ||
mappers := self newMappersAfterSerializeInto: aFileSystem. | ||
seen := Dictionary new. | ||
^ Array streamContents: [:stream | | ||
mappers do: [:mapperA | | pathPatternsA | | ||
pathPatternsA := mapperA mappedPathPatterns. | ||
seen keysAndValuesDo: [:mapperB :pathPatternsB | | ||
(pathPatternsA anySatisfy: [:pathPatternA | | ||
pathPatternsB anySatisfy: [:pathPatternB | | ||
pathPatternA collidesWith: pathPatternB]]) | ||
ifTrue: [stream nextPut: {mapperA. mapperB}]]. | ||
seen at: mapperA put: pathPatternsA]] |
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
7 changes: 7 additions & 0 deletions
7
src/GitS-Core.package/GSPathPattern.class/instance/collidesWith..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,7 @@ | ||
testing | ||
collidesWith: aPathPattern | ||
(self allowsLeading or: [aPathPattern allowsLeading]) | ||
ifTrue: ["ignore these for now, currently only used to catch .squot-contents" ^ false]. | ||
1 to: (self path size clampHigh: aPathPattern path size) do: [:index | | ||
(self path at: index) = (aPathPattern path at: index) 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