-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swa UI #343
Draft
LinqLover
wants to merge
20
commits into
develop
Choose a base branch
from
swa-ui
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Swa UI #343
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c686146
start minimal ui (remove stuff, add clone button)
ekrebs5 6e37190
remove menu elements
ekrebs5 95b7dc2
add basic custom UI
tom95 00416cc
make sure cloning works
tom95 771c3a8
add open method to new tool
ekrebs5 a00fdae
Extend swa ui
LinqLover 401925b
add credentials Morph, minor fixes
ekrebs5 67e5b7b
remove back-up tool
ekrebs5 2aed6a2
renaming
ekrebs5 516a2ca
Tool only handles exactly one repository
ekrebs5 e76ced9
add second registration method
ekrebs5 dc1b998
Merge branch 'develop' into swa-ui
ekrebs5 d56c34f
hotfix for swa
ekrebs5 b2189cd
hotfix for swa
ekrebs5 6639a18
Add SwaSquitBrowser>>actionPull using SquitInteractivePullFromUpstream
MariusDoe 4c39841
Use actionPull instead of actionFetchAndMerge
MariusDoe f54c0ea
Bump Monticello version
MariusDoe eeb0f19
Remove unused methods
MariusDoe 6c528fb
Fix SquitCredentialsFillInMorph sizing
MariusDoe 23b3025
Bump Monticello version
MariusDoe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,6 +1,6 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#slotOverrides : { }, | ||
#objectsReplacedByNames : true, | ||
#slotOverrides : IdentityDictionary { }, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
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,6 +1,6 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#slotOverrides : { }, | ||
#objectsReplacedByNames : true, | ||
#slotOverrides : IdentityDictionary { }, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
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,6 +1,6 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#slotOverrides : { }, | ||
#objectsReplacedByNames : true, | ||
#slotOverrides : IdentityDictionary { }, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
src/Squit.package/SwaSquitBrowser.class/instance/buildButtonBar..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,40 @@ | ||
toolbuilder | ||
buildButtonBar: builder | ||
| buttonBar commitButton pullButton pushButton | | ||
buttonBar := builder pluggablePanelSpec new | ||
layout: #horizontal; | ||
"spacing: -1;" | ||
children: OrderedCollection new; | ||
frame: (LayoutFrame new leftFraction: 0 offset: 0; | ||
topFraction: 0.6 offset: -25; | ||
rightFraction: 1 offset: 0; | ||
bottomFraction: 0.6 offset: 0) | ||
yourself. | ||
|
||
commitButton := builder pluggableActionButtonSpec new. | ||
commitButton | ||
model: self; | ||
label: 'Commit'; | ||
enabled: #hasProjectSelection; | ||
action: #actionCommit; | ||
help: 'Commit your current changes.'. | ||
|
||
pullButton := builder pluggableActionButtonSpec new. | ||
pullButton | ||
model: self; | ||
label: 'Pull'; | ||
enabled: #hasBranchSelection; | ||
action: #actionPull; | ||
help: 'Pull commits into the active branch from its tracked remote branch.'. | ||
|
||
pushButton := builder pluggableActionButtonSpec new. | ||
pushButton | ||
model: self; | ||
label: 'Push'; | ||
enabled: #hasBranchSelection; | ||
action: #actionPush; | ||
help: 'Push commits to a remote.'. | ||
|
||
buttonBar children addAll: { | ||
commitButton. pushButton. pullButton}. | ||
^ buttonBar |
23 changes: 23 additions & 0 deletions
23
src/Squit.package/SwaSquitBrowser.class/instance/buildCloneButton..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,23 @@ | ||
toolbuilder | ||
buildCloneButton: builder | ||
|
||
| buttonBar cloneButton | | ||
buttonBar := builder pluggablePanelSpec new | ||
layout: #horizontal; | ||
"spacing: -1;" | ||
children: OrderedCollection new; | ||
frame: (LayoutFrame new leftFraction: 0 offset: 0; | ||
topFraction: 0 offset: 0; | ||
rightFraction: 1 offset: 0; | ||
bottomFraction: 0.1 offset: 0) | ||
yourself. | ||
|
||
cloneButton := builder pluggableActionButtonSpec new. | ||
cloneButton | ||
model: self; | ||
label: 'Clone'; | ||
action: #actionProjectClone; | ||
help: 'Clone a new project.'. | ||
|
||
buttonBar children addAll: {cloneButton}. | ||
^ buttonBar |
24 changes: 24 additions & 0 deletions
24
src/Squit.package/SwaSquitBrowser.class/instance/buildCommitList..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,24 @@ | ||
toolbuilder | ||
buildCommitList: builder | ||
^ builder pluggableTreeSpec new | ||
model: self; | ||
hScrollBarPolicy: #whenNeeded; | ||
roots: #commitList; | ||
nodeClass: SquitVersionWrapper; | ||
getSelected: #commitSelection; | ||
setSelected: #commitSelection:; | ||
menu: #commitListMenu:; | ||
dragItem: #dragFromCommitList:; | ||
dropAccept: #wantsCommitListDrop:type:from:; | ||
dropItem: #dropOnCommitList:on:copyIndicated:; | ||
keyPress: #commitListKey:from:; | ||
columns: { | ||
[:listMorph | (listMorph filteredItems collect: [:item | | ||
item preferredWidthOfColumn: 1]) max]. | ||
[:listMorph | (listMorph filteredItems collect: [:item | | ||
item preferredWidthOfColumn: 2]) max]. | ||
nil "take all the space"}; | ||
frame: (LayoutFrame new leftFraction: 0 offset: 0; | ||
topFraction: 0 offset: 0; | ||
rightFraction: 1 offset: 0; | ||
bottomFraction: 1 offset: 0) |
11 changes: 11 additions & 0 deletions
11
src/Squit.package/SwaSquitBrowser.class/instance/buildCommitSearchPanel..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,11 @@ | ||
toolbuilder | ||
buildCommitSearchPanel: builder | ||
^ builder pluggablePanelSpec new | ||
wantsResizeHandles: true; | ||
model: self; | ||
children: {self buildCommitList: builder". | ||
self buildSearchPanel: builder"}; | ||
frame: (LayoutFrame new leftFraction: 0.2 offset: 0; | ||
topFraction: 0 offset: 0; | ||
rightFraction: 1 offset: 0; | ||
bottomFraction: 0.6 offset: -25) |
11 changes: 11 additions & 0 deletions
11
src/Squit.package/SwaSquitBrowser.class/instance/buildObjectList..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,11 @@ | ||
as yet unclassified | ||
buildObjectList: builder | ||
^ builder pluggableListSpec new | ||
model: self; | ||
list: #objectList; | ||
getIndex: #objectIndex; | ||
setIndex: #objectIndex:; | ||
dragItem: #dragFromObjectList:; | ||
dropAccept: #wantsObjectListDrop:type:from:; | ||
dropItem: #dropOnObjectList:at:copyIndicated:; | ||
frame: ([email protected] corner: 1@1) |
12 changes: 12 additions & 0 deletions
12
src/Squit.package/SwaSquitBrowser.class/instance/buildProjectBranchPanel..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,12 @@ | ||
toolbuilder | ||
buildProjectBranchPanel: builder | ||
^ builder pluggablePanelSpec new | ||
wantsResizeHandles: true; | ||
model: self; | ||
children: {self buildProjectList: builder. | ||
self buildCloneButton: builder". | ||
self buildBranchList: builder"}; | ||
frame: (LayoutFrame new leftFraction: 0 offset: 0; | ||
topFraction: 0 offset: 0; | ||
rightFraction: 0.2 offset: 0; | ||
bottomFraction: 0.6 offset: -25) |
12 changes: 12 additions & 0 deletions
12
src/Squit.package/SwaSquitBrowser.class/instance/buildProjectList..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,12 @@ | ||
toolbuilder | ||
buildProjectList: builder | ||
^ builder pluggableListSpec new | ||
model: self; | ||
list: #projectList; | ||
getIndex: #projectIndex; | ||
setIndex: #projectIndex:; | ||
dragItem: #dragFromProjectList:; | ||
dropAccept: #wantsProjectListDrop:type:from:; | ||
dropItem: #dropOnProjectList:at:copyIndicated:; | ||
menu: #projectListMenu:; | ||
frame: ([email protected] corner: 1@1) |
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,8 @@ | ||
actions on working copies | ||
clone | ||
| operation | | ||
operation := SwaSquitInteractiveClone new. | ||
[operation clone] | ||
on: SquitBadRemote do: | ||
[:e | e retry]. | ||
Project current addDeferredUIMessage: [self refresh]. |
3 changes: 3 additions & 0 deletions
3
src/Squit.package/SwaSquitBrowser.class/instance/commitListMenu..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 @@ | ||
as yet unclassified | ||
commitListMenu: aMenu | ||
^ self menu: aMenu for: #(swaMenuCommitList) |
2 changes: 2 additions & 0 deletions
2
src/Squit.package/SwaSquitBrowser.class/instance/offerToAddFirstProject.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,2 @@ | ||
actions | ||
offerToAddFirstProject |
3 changes: 3 additions & 0 deletions
3
src/Squit.package/SwaSquitBrowser.class/instance/projectListMenu..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 @@ | ||
as yet unclassified | ||
projectListMenu: aMenu | ||
^ self menu: aMenu for: #(swaMenuProjectList) |
20 changes: 20 additions & 0 deletions
20
src/Squit.package/SwaSquitBrowser.class/instance/swaMenuCommitListHook..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,20 @@ | ||
as yet unclassified | ||
swaMenuCommitListHook: aMenu | ||
<swaMenuCommitList> | ||
| activeBranchName isMenuOnActiveBranch onlyOnInactiveBranch commands | | ||
self hasProjectSelection ifFalse: [^ aMenu]. | ||
aMenu addTitle: (self commitSelection printStringLimitedTo: 50). | ||
self withUnitOfWork: | ||
[activeBranchName := self projectSelection loadedHistorian shortName. | ||
isMenuOnActiveBranch := selectedHistorian = self projectSelection loadedHistorian. | ||
onlyOnInactiveBranch := selectedHistorian ~= self projectSelection loadedHistorian. | ||
commands := { | ||
{'Checkout objects'. #actionCommitSelectionCheckout. 'Checkout objects from this commit. You will be able to select what will actually be loaded.', String cr, 'NOTE: unless you change the selection, your uncommitted changes will be reverted, so that what is loaded matches the objects in this commit!'}. | ||
{'Merge objects'. #actionCommitMergeIntoMemory. 'Merge objects from this commit with the loaded ones. You may use this to pick objects or changes from this commit without discarding your uncommitted changes.'}. | ||
'-'. | ||
{'Compare with parent commit'. #actionCommitDiffWithParent}. | ||
{'Compare with next selected commit'. #actionCommitDiffWithNextSelected. 'The next commit you select will be the origin of a diff against this commit.'}. | ||
{'Compare with working copy'. #actionCommitDiffWithWorkingCopy}. | ||
}. | ||
self buildMenu: aMenu from: commands]. | ||
^ aMenu |
11 changes: 11 additions & 0 deletions
11
src/Squit.package/SwaSquitBrowser.class/instance/swaMenuProjectListHook..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,11 @@ | ||
as yet unclassified | ||
swaMenuProjectListHook: aMenu | ||
<swaMenuProjectList> | ||
<menuPriority: 100> | ||
| submenu | | ||
self projectSelection | ||
ifNil: [submenu := aMenu] | ||
ifNotNil: [submenu := aMenu class new | ||
defaultTarget: aMenu defaultTarget; | ||
yourself]. | ||
^ aMenu |
21 changes: 21 additions & 0 deletions
21
src/Squit.package/SwaSquitBrowser.class/instance/swaMenuProjectListWorkingCopyHook..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,21 @@ | ||
as yet unclassified | ||
swaMenuProjectListWorkingCopyHook: aMenu | ||
<swaMenuProjectList> | ||
<menuPriority: 50> | ||
self projectSelection ifNil: [^ aMenu]. | ||
aMenu addTitle: 'Working copy of ', self projectSelection name. | ||
aMenu addList: { | ||
{'Rename project'. #actionProjectRename}. | ||
{'Remove project'. #actionProjectRemove}. | ||
}. | ||
aMenu addLine. | ||
aMenu | ||
addList: { | ||
{'Add or remove packages'. #actionAddOrRemoveTrackedPackages. 'Add or remove packages for this project.'} | ||
}. | ||
aMenu addLine. | ||
aMenu addList: { | ||
{'Edit credentials for project'. #actionCredentialsEdit}. | ||
{'Edit project-level git user name/email'. #actionGitUserEdit} | ||
}. | ||
^ aMenu |
18 changes: 18 additions & 0 deletions
18
src/Squit.package/SwaSquitBrowser.class/methodProperties.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,18 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"buildButtonBar:" : "ek 7/17/2021 12:07", | ||
"buildCloneButton:" : "ek 7/17/2021 11:32", | ||
"buildCommitList:" : "ek 7/17/2021 11:11", | ||
"buildCommitSearchPanel:" : "ek 7/17/2021 11:09", | ||
"buildObjectList:" : "ek 7/17/2021 13:20", | ||
"buildProjectBranchPanel:" : "ek 7/17/2021 11:25", | ||
"buildProjectList:" : "ek 7/17/2021 11:30", | ||
"clone" : "ek 7/17/2021 11:50", | ||
"commitListMenu:" : "ek 7/17/2021 13:04", | ||
"offerToAddFirstProject" : "ek 7/17/2021 11:37", | ||
"projectListMenu:" : "ek 7/17/2021 13:11", | ||
"swaMenuCommitListHook:" : "ek 7/17/2021 13:04", | ||
"swaMenuProjectListHook:" : "ek 7/17/2021 13:18", | ||
"swaMenuProjectListWorkingCopyHook:" : "ek 7/17/2021 13:19" } } |
6 changes: 3 additions & 3 deletions
6
...TonelSerializerTest.class/properties.json → ...age/SwaSquitBrowser.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,14 +1,14 @@ | ||
{ | ||
"category" : "SquotTonel-Tests", | ||
"category" : "Squit-Hackday", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SquotTonelSerializerTest", | ||
"name" : "SwaSquitBrowser", | ||
"pools" : [ | ||
], | ||
"super" : "TestCase", | ||
"super" : "SquitBrowser", | ||
"type" : "normal" } |
File renamed without changes.
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 @@ | ||
as yet unclassified | ||
open | ||
ToolBuilder open: self new |
11 changes: 11 additions & 0 deletions
11
src/Squit.package/SwaSquitBrowserNew.class/instance/actionCloneAndMerge.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,11 @@ | ||
as yet unclassified | ||
actionCloneAndMerge | ||
|
||
| operation | | ||
operation := SwaSquitInteractiveClone new. | ||
[operation clone] on: SquitBadRemote do: [:e | e retry]. | ||
self changed: #repositoryList. | ||
self selectRepository: operation repository. | ||
self actionMergeInteractive: false. | ||
Project current addDeferredUIMessage: [self refresh]. | ||
self browseRepository. |
4 changes: 4 additions & 0 deletions
4
src/Squit.package/SwaSquitBrowserNew.class/instance/actionCommitAndPush.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,4 @@ | ||
actions | ||
actionCommitAndPush | ||
|
||
self actionCommitAndThenDo: [self actionPush]. |
15 changes: 15 additions & 0 deletions
15
src/Squit.package/SwaSquitBrowserNew.class/instance/actionCommitAndThenDo..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,15 @@ | ||
as yet unclassified | ||
actionCommitAndThenDo: aBlock | ||
|
||
| workingCopy | | ||
self hasSelectedRepository ifFalse: [^ self]. | ||
|
||
workingCopy := self selectedRepository. | ||
self withUnitOfWork: [ | ||
[SquotGUI waitFor: | ||
((workingCopy newInteractiveSaveOperation | ||
title: 'Select changes and message for the new version'; | ||
applyToWorkingCopy) | ||
then: [:result | self refresh. aBlock value] | ||
ifRejected: [:reason | nil])] | ||
on: BrokenPromise do: [:e | e ifNotError: []]]. |
6 changes: 6 additions & 0 deletions
6
src/Squit.package/SwaSquitBrowserNew.class/instance/actionFetch.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 @@ | ||
actions | ||
actionFetch | ||
|
||
| workingCopy | | ||
workingCopy := self selectedRepository. | ||
self withUnitOfWork: [self fetch: workingCopy]. |
6 changes: 6 additions & 0 deletions
6
src/Squit.package/SwaSquitBrowserNew.class/instance/actionFetchAndMerge.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 @@ | ||
actions | ||
actionFetchAndMerge | ||
|
||
self | ||
actionFetch; | ||
actionMerge. |
4 changes: 4 additions & 0 deletions
4
src/Squit.package/SwaSquitBrowserNew.class/instance/actionMerge.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,4 @@ | ||
actions | ||
actionMerge | ||
|
||
^ self actionMergeInteractive: true |
7 changes: 7 additions & 0 deletions
7
src/Squit.package/SwaSquitBrowserNew.class/instance/actionMergeInteractive..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 @@ | ||
actions | ||
actionMergeInteractive: aBoolean | ||
|
||
self withUnitOfWork: [ | ||
self selectedRepository | ||
loadVersion: self selectedCommit | ||
interactive: aBoolean]. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. loadVersion does not merge, it is rather like checkout or reset. Did you intend to use some flavor of mergeVersion instead? |
13 changes: 13 additions & 0 deletions
13
src/Squit.package/SwaSquitBrowserNew.class/instance/actionPush.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,13 @@ | ||
as yet unclassified | ||
actionPush | ||
|
||
self withUnitOfWork: [ | ||
| historian | | ||
historian := self selectedRepository loadedHistorian. | ||
[[(SquitInteractivePushToUpstream historian: historian) push] | ||
on: SquitBadRemote do: | ||
[:e | | ||
Project current addDeferredUIMessage: [self error: 'bad remote: ' , e remote]. | ||
e resume]] | ||
on: SquotCannotExportEmptyHistory do: | ||
[self inform: 'No commits to push on ', historian shortName, ' yet.'].]. |
7 changes: 7 additions & 0 deletions
7
src/Squit.package/SwaSquitBrowserNew.class/instance/addRepository.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 @@ | ||
as yet unclassified | ||
addRepository | ||
|
||
| operation | | ||
operation := SwaSquitInteractiveClone new. | ||
[operation clone] on: SquitBadRemote do: [:e | e retry]. | ||
Project current addDeferredUIMessage: [self refresh] |
4 changes: 4 additions & 0 deletions
4
src/Squit.package/SwaSquitBrowserNew.class/instance/browseRepository.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,4 @@ | ||
as yet unclassified | ||
browseRepository | ||
|
||
((self selectedRepository ifNil: [^ self]) store artifacts collect: #object) detect: [:artifact | artifact isKindOf: PackageInfo] ifFound: #browse |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recently fixed an issue here in the original method. See #341