Skip to content

Commit

Permalink
Merge branch 'Pharo13' into Pharo12
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep authored Sep 4, 2024
2 parents 4a53622 + 2ccf2af commit 55630f0
Show file tree
Hide file tree
Showing 25 changed files with 44 additions and 180 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ env:

on:
push:
branches: [ Pharo12 ]
branches: [ Pharo13 ]
paths-ignore:
- 'README.md'
- 'docs/**'
pull_request:
branches: [ Pharo12 ]
branches: [ Pharo13 ]
paths-ignore:
- 'README.md'
- 'docs/**'
Expand All @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
smalltalk: [ Pharo64-12 ]
smalltalk: [ Pharo64-alpha ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
# Default value means that a failure in one OS cancels all
fail-fast: false
matrix:
smalltalk: [ Pharo64-12 ]
smalltalk: [ Pharo64-alpha ]
os: [ ubuntu-latest, macos-latest ]
ston: [ .smalltalk.ston ]
# Test Windows with some exclusions.
# At least a part of the problem is reported here:
# https://github.com/pharo-vcs/iceberg/issues/1394
include:
- smalltalk: Pharo64-12
- smalltalk: Pharo64-alpha
os: windows-latest
ston: .smalltalk.windows.ston
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions BaselineOfIceberg/BaselineOfIceberg.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ BaselineOfIceberg >> libgit: spec [
baseline: 'LibGit'
with: [
spec
repository: 'github://pharo-vcs/libgit2-pharo-bindings:v3.1.1';
loads: 'default' ].
repository: 'github://pharo-vcs/libgit2-pharo-bindings:Pharo13';
loads: 'default' ].
spec
project: 'LibGit-Tests'
copyFrom: 'LibGit'
Expand Down Expand Up @@ -128,5 +128,5 @@ BaselineOfIceberg >> resetKMRepository [
BaselineOfIceberg >> tonel: spec [
spec
baseline: 'Tonel'
with: [ spec repository: 'github://pharo-vcs/tonel:v1.1.0' ]
with: [ spec repository: 'github://pharo-vcs/tonel:Pharo13' ]
]
19 changes: 19 additions & 0 deletions Iceberg-TipUI/IceMergeResolutionRequest.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Extension { #name : 'IceMergeResolutionRequest' }

{ #category : '*Iceberg-TipUI' }
IceMergeResolutionRequest >> defaultAction [

| window mergeMorph |
mergeMorph := (IceTipMergeMorph forMerger: merge).

mergeMorph
fromDescription: merge sourceDescription;
toDescription: merge targetDescription.

window := mergeMorph newWindow
title: 'Merge';
yourself.

window openModal.
^ mergeMorph merged
]
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipDiffPanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ IceTipDiffPanel >> diffEntryRemoved: announcement [
no parent, but it's fine to just leave it there empty--though perhaps we should
close the browser instead in that case?"
[
parent parent notNil and: [
parent parent isNotNil and: [
parent isEmpty and: [
parent value isNoModification or: [
parent value definition isExtensionDefinition ] ] ] ] whileTrue: [
Expand Down
4 changes: 2 additions & 2 deletions Iceberg-TipUI/IceTipResetBranchToThisCommitCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IceTipResetBranchToThisCommitCommand class >> defaultDescription [
{ #category : 'testing' }
IceTipResetBranchToThisCommitCommand >> canBeExecuted [

^ self selectedBranch notNil
^ self selectedBranch isNotNil
]

{ #category : 'executing' }
Expand Down Expand Up @@ -57,7 +57,7 @@ IceTipResetBranchToThisCommitCommand >> selectedBranch [

| selected |
selected := self context model.
^ (selected notNil and: [ selected isBranch ]) ifTrue: [ selected ]
^ (selected isNotNil and: [ selected isBranch ]) ifTrue: [ selected ]
]

{ #category : 'accessing' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This is useful to guarantee the correct keeping of the changes.
Class {
#name : 'IceExperimentalFeature',
#superclass : 'IceWarning',
#category : 'Iceberg-TipUI-Exceptions',
#package : 'Iceberg-TipUI',
#tag : 'Exceptions'
#category : 'Iceberg-Errors',
#package : 'Iceberg',
#tag : 'Errors'
}

{ #category : 'visiting' }
Expand Down
12 changes: 5 additions & 7 deletions Iceberg/IceMCVersionInfo.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,19 @@ IceMCVersionInfo >> fromCommit: aCommit package: aPackage [
"See #fromPackage:message:"
commit := aCommit.
package := aPackage.

date := commit datetime asDate.
time := commit datetime asTime.

name := ('{1}-{2}.{3}' format: {
package name.
commit compatibleUsername.
commit datetime asUnixTime
}).

id := self class uuidFromCommit: aCommit package: aPackage.

message := commit comment.
author := commit compatibleUsername
id := self class uuidFromCommit: aCommit package: aPackage.

message := commit comment
]

{ #category : 'initialization' }
Expand All @@ -80,7 +78,7 @@ IceMCVersionInfo >> fromPackage: aPackage message: commitMessage [
To improve this implementation we should review the fileout process."

name := ('{1}-{2}.{3}' format: {aPackage name. Author fullName. 'unknown'}).
name := ('{1}-{2}.{3}' format: {aPackage name. 'CompatibleUserName'. 'unknown'}).
package := aPackage.
message := commitMessage.
id := UUID new
Expand Down
18 changes: 0 additions & 18 deletions Iceberg/IceMergeResolutionRequest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@ Class {
#tag : 'Errors'
}

{ #category : 'exception description' }
IceMergeResolutionRequest >> defaultAction [

| window mergeMorph |
mergeMorph := (IceTipMergeMorph forMerger: merge).

mergeMorph
fromDescription: merge sourceDescription;
toDescription: merge targetDescription.

window := mergeMorph newWindow
title: 'Merge';
yourself.

window openModal.
^ mergeMorph merged
]

{ #category : 'accessing' }
IceMergeResolutionRequest >> merge [
^ merge
Expand Down
30 changes: 0 additions & 30 deletions Iceberg/IceMetacelloRepositoryAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ IceMetacelloRepositoryAdapter >> canUpgradeTo: anMCGitBasedRepository [
and: [ self repoPath = anMCGitBasedRepository repoPath and: [ self projectVersion = anMCGitBasedRepository projectVersion ]]
]

{ #category : 'accessing' }
IceMetacelloRepositoryAdapter >> commitIdFor: aWorkingCopy ifFound: aBlock [

self flag: #pharoTodo. "Do nothing?"
]

{ #category : 'accessing' }
IceMetacelloRepositoryAdapter >> description [

Expand Down Expand Up @@ -95,12 +89,6 @@ IceMetacelloRepositoryAdapter >> hash [
^ self description hash
]

{ #category : 'compatibility' }
IceMetacelloRepositoryAdapter >> isCache [
"User for Kommiter and Versionner"
^ false
]

{ #category : 'compatibility' }
IceMetacelloRepositoryAdapter >> isRemote [
"User for Komitter"
Expand All @@ -124,24 +112,6 @@ IceMetacelloRepositoryAdapter >> loadPackageNamed: aName intoLoader: aLoader [
self }
]

{ #category : 'MonticelloGUI' }
IceMetacelloRepositoryAdapter >> morphicOpen: workingCopy [

| shouldOpenIceberg |
shouldOpenIceberg :=
SpApplication defaultApplication newConfirm
title: 'Browsing an iceberg repository';
label: ('{1} belongs to {2} and cannot be browsed here.
Do you want to open the Iceberg Browser instead?' format: {
workingCopy packageName.
self repository name });
acceptLabel: 'Open';
cancelLabel: 'Cancel';
openModal.
shouldOpenIceberg ifFalse: [ ^ self ].
IceTipRepositoriesBrowser new open
]

{ #category : 'accessing' }
IceMetacelloRepositoryAdapter >> packageNamed: aName [

Expand Down
6 changes: 0 additions & 6 deletions Iceberg/IcePackage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ IcePackage >> currentCommits [
^ workingCopy referenceCommits
]

{ #category : 'accessing' }
IcePackage >> directoryName [

^ self repository directoryNameForPackage: self
]

{ #category : 'comparing' }
IcePackage >> hash [
^ self name hash
Expand Down
2 changes: 1 addition & 1 deletion Iceberg/IceSystemEventListener.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ IceSystemEventListener class >> registerSystemAnnouncements [
SystemAnnouncer uniqueInstance weak
when: ClassAnnouncement send: #handleClassChange: to: self;
when: MethodAnnouncement send: #handleMethodChange: to: self;
when: ClassTagAnnouncement send: #handlePackageChange: to: self;
when: PackageTagAnnouncement send: #handlePackageChange: to: self;
when: MCVersionLoaderStopped send: #handleVersionLoaded: to: self.
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"
I'm a general warning in the context of iceberg UI.
I'm a general warning in the context of iceberg.
"
Class {
#name : 'IceWarning',
#superclass : 'Warning',
#category : 'Iceberg-TipUI-Exceptions',
#package : 'Iceberg-TipUI',
#tag : 'Exceptions'
#category : 'Iceberg-Errors',
#package : 'Iceberg',
#tag : 'Errors'
}

{ #category : 'visiting' }
Expand Down
7 changes: 0 additions & 7 deletions Iceberg/MCAddition.extension.st

This file was deleted.

5 changes: 0 additions & 5 deletions Iceberg/MCDefinition.extension.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
Extension { #name : 'MCDefinition' }

{ #category : '*Iceberg-Changes' }
MCDefinition >> addAnalysisToPackageChangeSet: aPackageChangeSet change: aChange [
aPackageChangeSet addChange: aChange
]

{ #category : '*Iceberg-changes' }
MCDefinition >> isFileDefinition [

Expand Down
6 changes: 0 additions & 6 deletions Iceberg/MCGitHubRepository.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ MCGitHubRepository class >> commitIdFor: aWorkingCopy [

]

{ #category : '*Iceberg-Adapters' }
MCGitHubRepository >> commitIdFor: aMCWorkingCopy ifFound: aBlockClosure [
(aMCWorkingCopy repositoryGroup includes: self)
ifTrue: [ aBlockClosure value: self commitId ]
]

{ #category : '*Iceberg-Adapters' }
MCGitHubRepository >> httpsUrl [
^ 'https://github.com/', projectPath, '.git'
Expand Down
15 changes: 0 additions & 15 deletions Iceberg/MCModification.extension.st

This file was deleted.

11 changes: 0 additions & 11 deletions Iceberg/MCOrganizationDefinition.extension.st

This file was deleted.

13 changes: 0 additions & 13 deletions Iceberg/MCPatchOperation.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Iceberg/MCPostscriptDefinition.extension.st

This file was deleted.

7 changes: 0 additions & 7 deletions Iceberg/MCRemoval.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Iceberg/MCRepository.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Iceberg/MCVersion.extension.st

This file was deleted.

17 changes: 0 additions & 17 deletions Iceberg/MCWorkingCopy.extension.st
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
Extension { #name : 'MCWorkingCopy' }

{ #category : '*Iceberg' }
MCWorkingCopy >> ancestry: anAncestry [

ancestry := anAncestry
]

{ #category : '*Iceberg' }
MCWorkingCopy >> info [
^ self versionInfo
]

{ #category : '*Iceberg-Adapters' }
MCWorkingCopy >> loadedVersion [
self ancestors do: [ :ancestor |
(self repositoryGroup
versionWithInfo: ancestor
ifNone: [ MCRepositoryGroup default versionWithInfo: ancestor ifNone: [] ])
ifNotNil: [ :version | ^ version ]
].

]
Loading

0 comments on commit 55630f0

Please sign in to comment.