-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1054 from jecisc/1036-Debugger-if-we-try-to-merge…
…-without-selecting-a-branch 1036-Debugger-if-we-try-to-merge-without-selecting-a-branch
- Loading branch information
Showing
19 changed files
with
69 additions
and
29 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Iceberg-TipUI.package/IceTipBranchModel.class/instance/printOn..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 @@ | ||
printing | ||
printOn: aStream | ||
super printOn: aStream. | ||
aStream | ||
nextPut: $[; | ||
nextPutAll: self name; | ||
nextPut: $] |
6 changes: 6 additions & 0 deletions
6
Iceberg-TipUI.package/IceTipCachedModel.class/instance/printOn..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,6 @@ | ||
printing | ||
printOn: aStream | ||
super printOn: aStream. | ||
aStream nextPut: $(. | ||
self realObject printOn: aStream. | ||
aStream nextPut: $) |
12 changes: 10 additions & 2 deletions
12
Iceberg-TipUI.package/IceTipExistingBranchPanel.class/instance/initializeBranchesList.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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
initialization | ||
initializeBranchesList | ||
| dataSource | | ||
branchesList widget | ||
addColumn: (IceTipTableColumn newAction: #shortDescriptionWithDecoration); | ||
dataSource: self newBranchListDataSource; | ||
dataSource: (dataSource := self newBranchListDataSource); | ||
bindKeyCombination: Character cr toAction: [ self accept ]; | ||
onAnnouncement: FTStrongSelectionChanged do: [ self accept ] | ||
onAnnouncement: FTStrongSelectionChanged do: [ self accept ]. | ||
|
||
" | ||
We would prefere to have this implementation but for now we have a bug with the caches because #branchModels return the same cache used by the datasource but not #defaultBranchSelection. If we correct that later we can clean the code bellow. | ||
self model defaultBranchSelection ifNotNil: [ :branchModel | branchesList widget selectRowIndex: (dataSource elements indexOf: branchModel) ]." | ||
|
||
self model branchModels detect: #isHead ifFound: [ :head | branchesList widget selectRowIndex: (dataSource elements indexOf: head) ] ifNone: [ self model hasBranches ifTrue: [ branchesList widget selectFirstVisibleRow ] ] |
4 changes: 1 addition & 3 deletions
4
Iceberg-TipUI.package/IceTipExistingBranchPanel.class/instance/validate.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
accessing | ||
validate | ||
self | ||
assert: self selectedBranch isNotNil | ||
description: 'Please select a branch to checkout.' | ||
self selectedBranch ifNil: [ IceError signal: 'Please select a branch to checkout.' ] |
3 changes: 2 additions & 1 deletion
3
Iceberg-TipUI.package/IceTipMergeBranchPanel.class/instance/doAccept.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
8 changes: 0 additions & 8 deletions
8
Iceberg-TipUI.package/IceTipRemoteModel.class/instance/branchModels.st
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/IceTipRemoteModel.class/instance/branches.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,3 @@ | ||
accessing | ||
branches | ||
^ self entity branches |
12 changes: 7 additions & 5 deletions
12
Iceberg-TipUI.package/IceTipRemoteModel.class/properties.json
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"classtraitcomposition" : "TWithBranchModel classTrait", | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "IceTipRemoteModel", | ||
"commentStamp" : "EstebanLorenzano 5/30/2018 14:33", | ||
"super" : "IceTipEntityModel", | ||
"category" : "Iceberg-TipUI-Model", | ||
"traitcomposition" : "TWithBranchModel", | ||
"type" : "normal", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "IceTipRemoteModel", | ||
"type" : "normal" | ||
"category" : "Iceberg-TipUI-Model" | ||
} |
8 changes: 0 additions & 8 deletions
8
Iceberg-TipUI.package/IceTipRepositoryModel.class/instance/branchModels.st
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/IceTipRepositoryModel.class/instance/branches.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,3 @@ | ||
accessing | ||
branches | ||
^ self entity localBranches |
4 changes: 2 additions & 2 deletions
4
Iceberg-TipUI.package/IceTipRepositoryModel.class/properties.json
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
Empty file.
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/branchModels.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,3 @@ | ||
branches | ||
branchModels | ||
^ self branches collect: [ :each | (IceTipBranchModel repositoryModel: self repositoryModel on: each) beCached ] |
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/branches.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,3 @@ | ||
branches | ||
branches | ||
^ self explicitRequirement |
6 changes: 6 additions & 0 deletions
6
Iceberg-TipUI.package/TWithBranchModel.trait/instance/defaultBranchSelection.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,6 @@ | ||
accessing | ||
defaultBranchSelection | ||
^ self branchModels | ||
detect: #isHead | ||
ifNone: [ self hasBranches | ||
ifTrue: [ self branchModels ifNotEmpty: #anyOne ] ] |
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/hasBranches.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,3 @@ | ||
testing | ||
hasBranches | ||
^ self branches isNotEmpty |
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/repositoryModel.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,3 @@ | ||
accessing | ||
repositoryModel | ||
^ self explicitRequirement |
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 @@ | ||
{ | ||
"commentStamp" : "", | ||
"classinstvars" : [ ], | ||
"category" : "Iceberg-TipUI-Model", | ||
"instvars" : [ ], | ||
"name" : "TWithBranchModel" | ||
} |
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,3 @@ | ||
testing | ||
hasBranches | ||
^ self branches isNotEmpty |