Skip to content

Commit

Permalink
Merge pull request #542 from LinqLover/MCFileystemFetchOnlyRepository…
Browse files Browse the repository at this point in the history
…-hasNoLoadConflicts-case-sensitivity

Honor possible case-insensitivity of certain file system repositories
  • Loading branch information
dalehenrich authored Mar 28, 2022
2 parents 89ff194 + 22af943 commit c047c7b
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testing
isProjectPathCaseSensitive

^ false
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
"isEnabled" : "tobe 5/6/2020 09:35",
"projectZipUrlFor:versionString:" : "tobe 5/6/2020 09:35" },
"instance" : {
"isProjectPathCaseSensitive" : "ct 4/26/2021 18:46",
"normalizeTagsData:" : "tobe 5/6/2020 09:33" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testing
isProjectPathCaseSensitive

^ false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
"projectZipUrlFor:versionString:" : "ct 10/12/2020 19:38" },
"instance" : {
"downloadJSONTags" : "tobe 7/13/2020 07:56",
"isProjectPathCaseSensitive" : "ct 4/26/2021 18:46",
"normalizeTagsData:" : "tobe 5/3/2020 20:55" } }
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
initialize-release
hasNoLoadConflicts: anMCGitBasedRepository
(anMCGitBasedRepository isKindOf: self class)
ifFalse: [ ^ false ].
^ self projectPath = anMCGitBasedRepository projectPath
and: [
self repoPath = anMCGitBasedRepository repoPath
and: [ self projectVersion = anMCGitBasedRepository projectVersion ] ]

| projectPath otherProjectPath |
(anMCGitBasedRepository isKindOf: self class)
ifFalse: [ ^ false ].

projectPath := self projectPath.
otherProjectPath := anMCGitBasedRepository projectPath.
self isProjectPathCaseSensitive ifFalse: [
projectPath := projectPath asLowercase.
otherProjectPath := otherProjectPath asLowercase].

^ projectPath = otherProjectPath
and: [ self repoPath = anMCGitBasedRepository repoPath ]
and: [ self projectVersion = anMCGitBasedRepository projectVersion ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testing
isProjectPathCaseSensitive

^ FileDirectory default isCaseSensitive
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@
"goferPriority" : "tobe 5/7/2020 13:29",
"goferReferences" : "tobe 5/4/2020 00:23",
"goferVersionFrom:" : "tobe 5/6/2020 10:25",
"hasNoLoadConflicts:" : "tobe 5/3/2020 21:32",
"hasNoLoadConflicts:" : "ct 4/26/2021 18:38",
"hash" : "tobe 5/3/2020 21:08",
"includesVersionNamed:" : "tobe 5/7/2020 13:35",
"initialize" : "tobe 5/6/2020 10:12",
"isProjectPathCaseSensitive" : "ct 4/26/2021 18:45",
"isTonelRepo" : "tobe 5/15/2020 20:27",
"isValid" : "tobe 5/18/2020 15:27",
"metacelloProjectClassFor:" : "tobe 5/7/2020 12:51",
Expand Down

Large diffs are not rendered by default.

0 comments on commit c047c7b

Please sign in to comment.