Skip to content

Commit

Permalink
Fix MCWorkingCopy deprecations
Browse files Browse the repository at this point in the history
Send #allWorkingCopies instead of  #allManagers if available.
  • Loading branch information
marschall committed Jul 12, 2024
1 parent 44e5bb7 commit f353dba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ sortedWorkingCopies
| categories packageNames workingCopies |
categories := Dictionary new.
packageNames := GRPackage grPackages collect: [ :each | each name ].
workingCopies := MCWorkingCopy allManagers select: [ :each | packageNames includes: each packageName ].
workingCopies := ((MCWorkingCopy respondsTo: #allWorkingCopies)
ifTrue: [ MCWorkingCopy allWorkingCopies ]
ifFalse: [ MCWorkingCopy allManagers ])
select: [ :each | packageNames includes: each packageName ].

Check warning on line 9 in repository/Seaside-Pharo-Tools-Web.package/WASeasideVersionStatus.class/instance/sortedWorkingCopies.st

View check run for this annotation

Codecov / codecov/patch

repository/Seaside-Pharo-Tools-Web.package/WASeasideVersionStatus.class/instance/sortedWorkingCopies.st#L6-L9

Added lines #L6 - L9 were not covered by tests
workingCopies do:
[ :each |
| category |
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SystemOrganization addCategory: #'Seaside-Pharo-Tools-Web'!
self packageOrganizer ensurePackage: #'Seaside-Pharo-Tools-Web' withTags: #()!

0 comments on commit f353dba

Please sign in to comment.