-
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 #410 from pharo-vcs/dev-0.5
- group branches by remote - add filter to package tab - move iceberg to most used tools - minor fixes
- Loading branch information
Showing
59 changed files
with
262 additions
and
96 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
...-Integration.package/MetacelloPharoCommonPlatform.extension/instance/createRepository..st
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...on.package/MetacelloPharoCommonPlatform.extension/instance/extractTypeFromDescription..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
Iceberg-Metacello-Integration.package/MetacelloPharoCommonPlatform.extension/properties.json
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
Description | ||
-------------------- | ||
|
||
I am an abstract class to define a common API for my subclasses that will manage some actions for some branch view of Iceberg. My subclasses will encapsulate a branch or a remote. | ||
|
||
I am use in the branch view of the main browser of Iceberg. | ||
|
||
Public API and Key Messages | ||
-------------------- | ||
|
||
- #children It should return the children of my element. It will probably return the branches of a remote for the remotes and nothing for the branches. | ||
- #nameToDisplay String to show to the user. | ||
- #status Status to show to the user about incomming/unpublished commits. |
5 changes: 5 additions & 0 deletions
5
Iceberg-UI.package/IceAbstractBranchModel.class/instance/children.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,5 @@ | ||
accessing | ||
children | ||
"It should return the children of my element. It will probably return the branches of a remote for the remotes and nothing for the branches." | ||
|
||
^ self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceAbstractBranchModel.class/instance/isBranchModel.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 | ||
isBranchModel | ||
^ false |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceAbstractBranchModel.class/instance/nameToDisplay.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 | ||
nameToDisplay | ||
^ self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceAbstractBranchModel.class/instance/repository.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 | ||
repository | ||
^ self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceAbstractBranchModel.class/instance/status.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 | ||
status | ||
^ self subclassResponsibility |
11 changes: 11 additions & 0 deletions
11
Iceberg-UI.package/IceAbstractBranchModel.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "CyrilFerlicot 7/9/2017 03:25", | ||
"super" : "Object", | ||
"category" : "Iceberg-UI-Utils", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "IceAbstractBranchModel", | ||
"type" : "normal" | ||
} |
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,24 @@ | ||
Description | ||
-------------------- | ||
|
||
I represent a group of branches. I am used in two principal cases. | ||
|
||
1) We want to group the branches of a remote | ||
2) We want to group the local branches | ||
|
||
Examples | ||
-------------------- | ||
|
||
"For a remote" | ||
IceBranchGroupModel repository: anIceRepository remote: anIceRemote. | ||
|
||
"For local branches" | ||
IceBranchGroupModel localFromRepository: anIceRepository | ||
|
||
Internal Representation and Key Implementation Points. | ||
-------------------- | ||
|
||
Instance Variables | ||
branches: <aBlockOrSymbol> This block takes the repository as parameter and should return the branches of the group | ||
groupName: <aString> Name of the group. In case I represent a remote it will be the remote name, else it will probably be "Local" | ||
repository: <anIceRepository> The repository where to get the branches |
9 changes: 9 additions & 0 deletions
9
Iceberg-UI.package/IceBranchGroupModel.class/class/localFromRepository..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,9 @@ | ||
instance creation | ||
localFromRepository: aRepository | ||
^ self | ||
repository: aRepository | ||
branches: #localBranches | ||
groupName: | ||
('Local' asText | ||
allBold; | ||
yourself) |
7 changes: 7 additions & 0 deletions
7
Iceberg-UI.package/IceBranchGroupModel.class/class/repository.branches.groupName..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 @@ | ||
instance creation | ||
repository: aRepository branches: aCollection groupName: aString | ||
^ self new | ||
repository: aRepository; | ||
branches: aCollection; | ||
groupName: aString; | ||
yourself |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/class/repository.remote..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 @@ | ||
instance creation | ||
repository: aRepository remote: aRemote | ||
^ self repository: aRepository branches: [ :repository | aRemote branchesFrom: repository ] groupName: aRemote asString |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.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: aBlockOrSymbol | ||
branches := aBlockOrSymbol |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.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 | ||
^ branches cull: self repository |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/instance/children.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 | ||
children | ||
^ self branches collect: [ :branch | IceBranchModel parent: self branch: branch ] |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/instance/groupName..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 | ||
groupName: aString | ||
groupName := aString |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/instance/groupName.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 | ||
groupName | ||
^ groupName |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/instance/nameToDisplay.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 | ||
nameToDisplay | ||
^ self groupName |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/instance/repository..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 | ||
repository: anIceRepository | ||
repository := anIceRepository |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/instance/repository.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 | ||
repository | ||
^ repository |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchGroupModel.class/instance/status.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 | ||
status | ||
^ self branches size asString , ' branches' |
15 changes: 15 additions & 0 deletions
15
Iceberg-UI.package/IceBranchGroupModel.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"commentStamp" : "CyrilFerlicot 7/9/2017 03:35", | ||
"super" : "IceAbstractBranchModel", | ||
"category" : "Iceberg-UI-Utils", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"repository", | ||
"branches", | ||
"groupName" | ||
], | ||
"name" : "IceBranchGroupModel", | ||
"type" : "normal" | ||
} |
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,16 @@ | ||
Description | ||
-------------------- | ||
|
||
I represent an unique branch. I should be contained in an IceBranchGroupModel. | ||
|
||
Examples | ||
-------------------- | ||
|
||
IceBranchModel parent: anIceBranchGroupModel branch: anIceBranch | ||
|
||
Internal Representation and Key Implementation Points. | ||
-------------------- | ||
|
||
Instance Variables | ||
branch: <anIceBranch> The branch I should display info for. | ||
parentGroup: <anIceBranchGroupModel> The branch group inside of which I am. |
6 changes: 6 additions & 0 deletions
6
Iceberg-UI.package/IceBranchModel.class/class/parent.branch..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 @@ | ||
instance creation | ||
parent: anIceBranchGroupModel branch: anIceBranch | ||
^ self new | ||
parentGroup: anIceBranchGroupModel; | ||
branch: anIceBranch; | ||
yourself |
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 | ||
branch: anIceBranch | ||
branch := anIceBranch |
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 | ||
branch | ||
^ branch |
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 | ||
children | ||
^ #() |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchModel.class/instance/compareCurrentToMe.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 @@ | ||
action | ||
compareCurrentToMe | ||
self repository compareCurrentBranchWithBranch: self branch |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchModel.class/instance/isBranchModel.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 | ||
isBranchModel | ||
^ true |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchModel.class/instance/nameToDisplay.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 | ||
nameToDisplay | ||
^ self repository descriptionTextForBranch: self branch |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchModel.class/instance/parentGroup..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 | ||
parentGroup: anIceBranchGroupModel | ||
parentGroup := anIceBranchGroupModel |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchModel.class/instance/parentGroup.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 | ||
parentGroup | ||
^ parentGroup |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchModel.class/instance/repository.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 | ||
repository | ||
^ self parentGroup repository |
6 changes: 3 additions & 3 deletions
6
...yModel.class/instance/statusForBranch..st → ...e/IceBranchModel.class/instance/status.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
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceBranchModel.class/instance/switchToMe.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 @@ | ||
action | ||
switchToMe | ||
self repository switchBranchTo: self branch |
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 @@ | ||
{ | ||
"commentStamp" : "CyrilFerlicot 7/9/2017 03:36", | ||
"super" : "IceAbstractBranchModel", | ||
"category" : "Iceberg-UI-Utils", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"parentGroup", | ||
"branch" | ||
], | ||
"name" : "IceBranchModel", | ||
"type" : "normal" | ||
} |
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,3 +1,3 @@ | ||
acessing | ||
nameText | ||
^ self highlight: self package name | ||
^ self highlight: self packageName |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IcePackageModel.class/instance/packageName.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 @@ | ||
acessing | ||
packageName | ||
^ self package name |
6 changes: 6 additions & 0 deletions
6
Iceberg-UI.package/IceRemote.extension/instance/branchesFrom..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 @@ | ||
*Iceberg-UI | ||
branchesFrom: aRepository | ||
"I return all the branches of my remote from a repository" | ||
|
||
^ aRepository branches | ||
select: [ :branch | branch isRemote and: [ branch remoteName = self remoteName ] ] |
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 @@ | ||
{ | ||
"name" : "IceRemote" | ||
} |
23 changes: 15 additions & 8 deletions
23
Iceberg-UI.package/IceRepositoriesBrowser.class/instance/addRepositoryBranchesTo..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,16 +1,23 @@ | ||
building | ||
addRepositoryBranchesTo: composite | ||
| branches | | ||
|
||
(branches := composite fastTable) | ||
(branches := composite fastTreeTable) | ||
title: 'Branches'; | ||
display: #branches; | ||
column: 'Name' evaluated: [ :branch :model | model descriptionTextForBranch: branch ]; | ||
column: 'Status' evaluated: [ :branch :model | model statusForBranch: branch ]. | ||
|
||
display: [ :repository | | ||
| localisations | | ||
localisations := repository remotes collect: [ :remote | IceBranchGroupModel repository: repository remote: remote ] as: OrderedCollection. | ||
repository hasLocalBraches | ||
ifTrue: [ localisations addFirst: (IceBranchGroupModel localFromRepository: repository) ]. | ||
localisations ]; | ||
children: #children; | ||
column: 'Name' evaluated: #nameToDisplay; | ||
column: 'Status' evaluated: #status; | ||
allExpanded. | ||
|
||
"actions" | ||
branches addAction: self branchCreateNewAction. | ||
|
||
"selection actions" | ||
branches | ||
branches | ||
addSelectionAction: self branchSwitchAction; | ||
addSelectionAction: self branchCompareWithCurrentAction | ||
addSelectionAction: self branchCompareWithCurrentAction |
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
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
Oops, something went wrong.