Skip to content

Commit

Permalink
Merge pull request #122 from dalehenrich/dev
Browse files Browse the repository at this point in the history
Pick up recent changes that include support for latest Metacello release
  • Loading branch information
dalehenrich committed Oct 29, 2014
2 parents 8a4e2c5 + 3e9f763 commit 58d5386
Show file tree
Hide file tree
Showing 38 changed files with 87 additions and 66 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
instance creation
importFrom: filepath
FileStream readOnlyFileNamed: filepath do: [ :fileStream | ^(STON fromStream: fileStream) asTDSessionDescription ].
FileStream readOnlyFileNamed: filepath do: [ :fileStream | ^(STON fromStream: fileStream) asTDSessionDescription ].
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
accessing
gciLibrary
| libraryClass library libName ext |
libraryClass := GciLibrary withAllSubclasses detect: [ :each | each isClassForVersion: self gemstoneVersion ].
ExternalAddress startUp: true.
libName := self gciLibraryName.
ext := self gciLibraryExtension.
(libName endsWith: ext)
ifFalse: [ libName := libName , ext ].
library := libraryClass libraryNamed: libName.
library apiGciInit.
^ library
| libraryClass library libName ext |
libraryClass := GciLibrary withAllSubclasses
detect: [ :each | each isClassForVersion: self gemstoneVersion ].
(Smalltalk at: #'ExternalAddress') startUp: true.
libName := self gciLibraryName.
ext := self gciLibraryExtension.
(libName endsWith: ext)
ifFalse: [ libName := libName , ext ].
library := libraryClass libraryNamed: libName.
library apiGciInit.
^ library
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ gemNRS

^'!tcp@' , self gemHost,
'#netldi:' , self netLDI,
'#task!' , self gemTask.
'#task!' , self gemTask.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
accessing
serverTodeRoot: anObject

serverTodeRoot := anObject
serverTodeRoot := anObject
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ nrs
stoneNRS

^'!tcp@' , self stoneHost ,
'#server!' , self stoneName.

'#server!' , self stoneName.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"editTemplateOn:" : "dkh 7/8/2014 22:24",
"exportTo:" : "dkh 5/28/2014 06:35",
"exportTo:extension:" : "dkh 5/28/2014 06:35",
"gciLibrary" : "dkh 5/28/2014 06:35",
"gciLibrary" : "dkh 10/07/2014 14:51",
"gciLibraryExtension" : "dkh 5/28/2014 06:35",
"gciLibraryName" : "dkh 5/28/2014 06:35",
"gciLibraryName:" : "dkh 5/28/2014 06:35",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
testing
hasGithubRepo
hasGitBasedRepo
^ false
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"fieldThree" : "dkh 05/15/2014 18:02",
"fieldTwo" : "dkh 05/15/2014 18:02",
"hasFileTreeRepo" : "dkh 05/15/2014 18:27",
"hasGitBasedRepo" : "dkh 09/29/2014 12:42",
"hasGitRepository" : "dkh 05/15/2014 18:27",
"hasGithubRepo" : "dkh 05/16/2014 06:19",
"hasVersionSkew" : "dkh 05/15/2014 17:54",
"isActive" : "dkh 05/15/2014 22:28",
"isBaselineBased" : "dkh 05/16/2014 15:52",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
accessing
operations
^ self merger operations
stFilterBlock ifNil: [ ^ self merger operations ].
^ self merger operations select: stFilterBlock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
stFilterBlock: anObject

stFilterBlock := anObject
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
stFilterBlock

^stFilterBlock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"merger:" : "dkh 05/28/2014 21:07",
"merger:mergerCompletionBlock:mergerAbortBlock:" : "dkh 05/28/2014 21:07",
"methodMenuActionSpec" : "dkh 07/08/2014 11:03",
"operations" : "dkh 05/09/2014 14:55",
"operations" : "dkh 10/07/2014 14:56",
"operationsMenuActionSpec" : "dkh 05/30/2014 10:53",
"selectClassOperations:selectionIndex:" : "dkh 05/30/2014 10:54",
"selectEditDefinitionMenuAction:selectionIndex:" : "dkh 05/09/2014 15:09",
"stFilterBlock" : "dkh 10/07/2014 14:57",
"stFilterBlock:" : "dkh 10/07/2014 14:57",
"toggleViewSameSource:selectionIndex:" : "dkh 05/30/2014 10:53" } }
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
],
"commentStamp" : "",
"instvars" : [
"merger" ],
"merger",
"stFilterBlock" ],
"name" : "TDMergeDiffBrowser",
"pools" : [
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ currentVersionString
ifNil: [
currentVersionString := self isLoadedInImage not
ifTrue: [ '' ]
ifFalse: [ self registration currentVersionString ] ].
ifFalse: [
[ self registration currentVersionString ]
on: Error
do: [ :ex | ex return: '???' ] ] ].
^ currentVersionString
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"instance" : {
"applyVersionStringToMetacello:" : "dkh 06/19/2014 17:49",
"baselineClassName" : "dkh 06/20/2014 10:14",
"currentVersionString" : "dkh 08/10/2014 16:37",
"currentVersionString" : "dkh 10/07/2014 09:59",
"isBaselineBased" : "dkh 06/19/2014 17:39",
"projectSelector" : "dkh 06/19/2014 18:06" } }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
testing
hasGithubRepo
self repositorySpec type = 'github'
hasGitBasedRepo
super hasGitBasedRepo
ifTrue: [ ^ true ].
^ self hybridRepositorySpec notNil
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"cloneProjectSpec" : "dkh 06/30/2014 21:01",
"configurationClassName" : "dkh 06/20/2014 10:14",
"currentVersionString" : "dkh 08/10/2014 16:37",
"hasGithubRepo" : "dkh 06/30/2014 20:54",
"hasGitBasedRepo" : "dkh 09/29/2014 12:45",
"hybridBaselineProjectSpec" : "dkh 06/30/2014 21:02",
"hybridRepositorySpec" : "dkh 06/30/2014 20:55",
"isHybridBased" : "dkh 06/19/2014 17:41",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ itemSelected: miniTool listElement: listElement selectedIndex: index shiftPresse
#'project'.
#'metacelloProject'.
#'configurationProject'.
#'githubProject'.
#'gitBasedProject'.
#'baselineProject'.
#'nonDirtyGitProject'}.
enable := [ :symbol |
enabled add: symbol.
disabled remove: symbol ifAbsent: [ ] ].
registration hasVersionSkew
ifTrue: [ enable value: #'versionSkew' ].
registration hasGithubRepo
ifTrue: [ enable value: #'githubProject' ].
registration hasGitBasedRepo
ifTrue: [ enable value: #'gitBasedProject' ].
(registration isLoadedInImage or: [ registration isExternalGitProject ])
ifTrue: [
registration isLoadedInImage
Expand All @@ -38,7 +38,7 @@ itemSelected: miniTool listElement: listElement selectedIndex: index shiftPresse
(registration isMetacelloProject or: [ registration hasGitRepository ])
ifTrue: [
enable value: #'repoBasedProject'.
registration hasGithubRepo
registration hasGitBasedRepo
ifFalse: [
enable
value: #'writableRepoBasedProject';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ menuActionSpec: miniTool
->
{#('branches' nil #'gitBranchesMenuAction:selectionIndex:' nil #'gitProject' false).
#('checkout' nil #'gitCheckoutMenuAction:selectionIndex:' nil #'gitProject' false).
#('clone' nil #'cloneProjectMenuAction:selectionIndex:' nil #'githubProject' false).
#('clone' nil #'cloneProjectMenuAction:selectionIndex:' nil #'gitBasedProject' false).
#('diff' nil #'gitDiffMenuAction:selectionIndex:' nil #'gitProject' false).
#('diff (cached)' nil #'gitDiffCachedMenuAction:selectionIndex:' nil #'gitProject' false).
#('fetch' nil #'gitFetchMenuAction:selectionIndex:' nil #'gitProject' false).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"gitVersionSkewDiffMenuAction:selectionIndex:" : "dkh 05/29/2014 20:57",
"gitVersionSkewSaveProjectMenuAction:selectionIndex:" : "dkh 06/18/2014 20:52",
"hasGitRepository:" : "dkh 05/12/2014 17:05",
"itemSelected:listElement:selectedIndex:shiftPressed:" : "dkh 07/26/2014 12:22",
"itemSelected:listElement:selectedIndex:shiftPressed:" : "dkh 09/29/2014 12:43",
"loadConfigurationVersionMenuAction:selectionIndex:" : "dkh 07/01/2014 15:49",
"loadProjectMenuAction:selectionIndex:" : "dkh 06/02/2014 10:17",
"lockProjectMenuAction:selectionIndex:" : "dkh 06/13/2014 01:03",
"menuActionSpec:" : "dkh 07/03/2014 17:09",
"menuActionSpec:" : "dkh 09/29/2014 12:40",
"projectBlock" : "dkh 05/07/2014 11:19",
"projectBlock:" : "dkh 05/07/2014 11:19",
"projectTool" : "dkh 05/12/2014 17:02",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testing
hasGitBasedRepo
^ #('github' 'gitorious' 'bitbucket') includes: self repositorySpec type
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
testing
hasGitRepository
^ self hasFileTreeRepo
and: [ MetacelloPlatform current gitIsGitDirectoryPath: self gitRepoDirectoryPath ]
and: [
[ MetacelloPlatform current gitIsGitDirectoryPath: self gitRepoDirectoryPath ]
on: Error
do: [ :ex | ex return: false ] ]

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"gitRootDirectory" : "dkh 05/22/2014 12:05",
"gitRootPath" : "dkh 06/13/2014 01:37",
"hasFileTreeRepo" : "dkh 05/15/2014 18:27",
"hasGitRepository" : "dkh 05/15/2014 18:41",
"hasGithubRepo" : "dkh 05/16/2014 06:19",
"hasGitBasedRepo" : "dkh 09/29/2014 12:44",
"hasGitRepository" : "dkh 10/07/2014 09:52",
"hybridBaselineProjectSpec" : "dkh 07/01/2014 16:06",
"isBaselineBased" : "dkh 05/16/2014 15:53",
"isConfigurationBased" : "dkh 05/16/2014 15:54",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ currentBranchName
ifNil: [
currentBranchName := self isLoadedInImage not
ifTrue: [ '' ]
ifFalse: [ self registration currentBranchName ] ].
ifFalse: [
[ self registration currentBranchName ]
on: Error
do: [ :ex | ex return: '???' ] ] ].
^ currentBranchName
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"configurationClassName" : "dkh 06/20/2014 10:17",
"configurationProjectSpec" : "dkh 05/16/2014 07:28",
"configurationVersionString" : "dkh 05/16/2014 07:04",
"currentBranchName" : "dkh 08/10/2014 16:54",
"currentBranchName" : "dkh 10/07/2014 09:59",
"currentVersionString" : "dkh 08/10/2014 16:37",
"diffProjectUsing:" : "dkh 05/15/2014 17:41",
"emphasis" : "dkh 05/20/2014 18:49",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ projectLoad: projectName doGet: doGet gsDeployer: gsDeployerOption selector: pro
repositoryOverrides
ifNotNil: [ metacello repositoryOverrides: repositoryOverrides ].
onBlock := [ :ex :aspect |
aspect == #'useNew'
ifTrue: [ ex useNew ]
aspect == #'useIncoming'
ifTrue: [ ex useIncoming ]
ifFalse: [
aspect == #'useExisting'
ifTrue: [ ex useExisting ]
aspect == #'useLoaded'
ifTrue: [ ex useLoaded ]
ifFalse: [ ex pass ] ] ].
onConflict
ifNotNil: [ metacello onConflict: [ :ex | onBlock value: ex value: onConflict ] ].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ projectLoad: projectName selector: projectSelector repositoryDescription: reposi
className: className
loads: loads
version: version
onConflict: #'useNew'
onConflict: #'useIncoming'
onDowngrade: nil
onLock: #'honor'
onUpgrade: nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ projectLoadConfiguration: projectName version: version repositoryDescription: re
className: className
loads: loads
version: version
onConflict: #'useNew'
onConflict: #'useIncoming'
onDowngrade: nil
onLock: #'honor'
onUpgrade: nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ projectentry
projectEntry
configuration: arg
version: version
repository: repo printString
repository: repo
loads: 'default' ]
ifAbsent: [
subOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ projectload
[--no-flush] [--no-get]
[ (--baseline | --configuration --version=<version> ) ]
[--repository=<repository-reference>]
[--onConflict=useNew|useExisting]
[--onDowngrade=useNew|useExisting]
[--onConflict=useIncoming|useLoaded]
[--onDowngrade=useIncoming|useLoaded]
[--onLock=break|honor]
[--onUpgrade=useNew|useExisting]
[--onUpgrade=useIncoming|useLoaded]
[--ignoreImage] [--silently]
[--cacheRepository=@<repository-reference>]
[--repositoryOverrides=@<repository-reference>]
Expand Down Expand Up @@ -74,7 +74,7 @@ projectload
subOptions
at: 'onConflict'
ifPresent: [ :arg | onConflict := arg asSymbol ]
ifAbsent: [ onConflict := #'useNew' ].
ifAbsent: [ onConflict := #'useIncoming' ].
subOptions at: 'onDowngrade' ifPresent: [ :arg | onDowngrade := arg asSymbol ].
subOptions
at: 'onLock'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
"projectGet:className:selector:repositoryDescription:" : "dkh 07/01/2014 15:47",
"projectGet:className:selector:version:repositoryDescription:" : "dkh 07/01/2014 15:31",
"projectGetConfiguration:version:repositoryDescription:" : "dkh 07/01/2014 15:50",
"projectLoad:doGet:gsDeployer:selector:description:className:loads:version:onConflict:onDowngrade:onLock:onUpgrade:ignoreImage:silently:cacheRepository:overrides:" : "dkh 08/10/2014 21:29",
"projectLoad:doGet:gsDeployer:selector:description:className:loads:version:onConflict:onDowngrade:onLock:onUpgrade:ignoreImage:silently:cacheRepository:overrides:" : "dkh 10/10/2014 14:32",
"projectLoad:doGet:gsDeployer:selector:repositoryDescription:loads:version:onConflict:onDowngrade:onLock:onUpgrade:ignoreImage:silently:cacheRepository:repositoryOverrides:" : "dkh 07/22/2014 15:47",
"projectLoad:selector:repositoryDescription:className:loads:version:" : "dkh 07/22/2014 15:47",
"projectLoad:selector:repositoryDescription:className:loads:version:" : "dkh 10/10/2014 14:33",
"projectLoad:selector:repositoryDescription:loads:" : "dkh 05/13/2014 15:52",
"projectLoad:selector:repositoryDescription:loads:version:" : "dkh 06/17/2014 12:24",
"projectLoadBaseline:repositoryDescription:loads:" : "dkh 05/13/2014 15:48",
"projectLoadConfiguration:version:repositoryDescription:className:loads:" : "dkh 07/22/2014 15:47",
"projectLoadConfiguration:version:repositoryDescription:className:loads:" : "dkh 10/10/2014 14:34",
"projectLock:" : "dkh 06/20/2014 07:13",
"projectMap:from:toRepository:" : "dkh 07/01/2014 11:31",
"projectMerge:commitish:gitRepoDirectory:" : "dkh 05/30/2014 06:57",
Expand All @@ -60,9 +60,9 @@
"projectcommit" : "dkh 05/16/2014 07:48",
"projectcompare" : "dkh 05/29/2014 20:59",
"projectdiff" : "dkh 05/13/2014 13:31",
"projectentry" : "dkh 07/26/2014 12:49",
"projectentry" : "dkh 10/01/2014 09:54",
"projectlist" : "dkh 05/22/2014 07:27",
"projectload" : "dkh 07/30/2014 11:17",
"projectload" : "dkh 10/10/2014 14:33",
"projectlock" : "dkh 06/13/2014 01:02",
"projectlog" : "dkh 07/11/2014 21:50",
"projectprime" : "dkh 05/09/2014 08:22",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
testing
hasGithubRepo
self repositorySpec type = 'github'
hasGitBasedRepo
super hasGitBasedRepo
ifTrue: [ ^ true ].
^ self hybridRepositorySpec notNil
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"configurationClassName" : "dkh 06/30/2014 19:55",
"configurationVersionString" : "dkh 05/23/2014 11:53",
"emphasis" : "dkh 05/15/2014 17:57",
"hasGithubRepo" : "dkh 06/30/2014 20:50",
"hasGitBasedRepo" : "dkh 09/29/2014 12:45",
"hybridBaselineProjectSpec" : "dkh 07/02/2014 14:41",
"hybridRepositorySpec" : "dkh 06/30/2014 20:56",
"isDirty" : "dkh 05/31/2014 15:25",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ concreteRevertProjectUsing: aProjectTool registration: aProjectRegistration
className: projectClassName
loads: loads
version: aProjectRegistration configurationVersionString
onConflict: #'useNew'
onDowngrade: #'useNew'
onConflict: #'useIncoming'
onDowngrade: #'useIncoming'
onLock: #'honor'
onUpgrade: #'useNew'
onUpgrade: #'useIncoming'
ignoreImage: false
silently: false
cacheRepository: nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"baseline:repository:loads:" : "dkh 05/15/2014 17:14",
"concreteGetProjectUsing:registration:" : "dkh 08/20/2014 07:02",
"concreteLoadProjectUsing:registration:" : "dkh 06/20/2014 13:58",
"concreteRevertProjectUsing:registration:" : "dkh 07/22/2014 15:48",
"concreteRevertProjectUsing:registration:" : "dkh 10/10/2014 14:34",
"configuration:className:version:repository:loads:" : "dkh 06/16/2014 17:13",
"configuration:version:repository:loads:" : "dkh 05/30/2014 12:01",
"createProjectListRegistration" : "dkh 05/15/2014 18:15",
Expand Down

Large diffs are not rendered by default.

0 comments on commit 58d5386

Please sign in to comment.