Skip to content

Commit

Permalink
#195 rename hasGitFileTreeMetadata to withMonticelloMetadata ...
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Jul 12, 2016
1 parent 998e99c commit f27c265
Show file tree
Hide file tree
Showing 25 changed files with 42 additions and 42 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
testing
hasMonticelloMetadata
| metaDir |
self hasGitFileTreeMetadata
self withMonticelloMetadata
ifFalse: [ ^ false ].
^ ((self fileUtils
directoryExists:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
withMonticelloMetadata: aBool
withMonticelloMetadata := aBool
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
withMonticelloMetadata
withMonticelloMetadata ifNil: [ withMonticelloMetadata := true ].
^ withMonticelloMetadata
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"definitionFromFile:inDirectory:" : "dkh 03/22/2013 15:01",
"extractDependencyInfoFor:" : "dkh 07/09/2016 09:11",
"fileUtils" : "dkh 8/10/2012 05:39",
"hasGitFileTreeMetadata" : "dkh 07/09/2016 08:44",
"hasGitFileTreeMetadata:" : "dkh 07/09/2016 08:52",
"hasMonticelloMetadata" : "dkh 07/09/2016 08:48",
"hasMonticelloMetadata" : "dkh 07/12/2016 06:33",
"loadDefinitions" : "dkh 3/1/2012 12:07",
"loadDependencies" : "dkh 07/09/2016 09:12",
"monticelloMetaDirName" : "dkh 4/4/2012 17:43",
"noMethodMetaData" : "dkh 3/1/2012 10:11",
"packageDirectory:" : "dkh 8/10/2012 05:46",
"packageProperties" : "dkh 03/22/2013 12:56",
"parseMember:" : "dkh 03/22/2013 15:01",
"separateMethodMetaAndSource" : "dkh 3/1/2012 10:10" } }
"separateMethodMetaAndSource" : "dkh 3/1/2012 10:10",
"withMonticelloMetadata" : "dkh 07/12/2016 06:33",
"withMonticelloMetadata:" : "dkh 07/12/2016 06:33" } }
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"instvars" : [
"packageDirectory",
"packageProperties",
"hasGitFileTreeMetadata" ],
"withMonticelloMetadata" ],
"name" : "MCFileTreeAbstractReader",
"pools" : [
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
accessing
setNoMetadata
self hasGitFileTreeMetadata
self withMonticelloMetadata
ifTrue: [
self repositoryProperties at: 'Metadata' put: 'false'.
self writeRepositoryProperties ]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
accessing
setWithMetadata
self hasGitFileTreeMetadata
self withMonticelloMetadata
ifFalse: [
self repositoryProperties removeKey: 'Metadata'.
self writeRepositoryProperties ]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ versionInfoForPackageDirectory: packageDirectory
readerClassForFileNamed: (self fileUtils directoryName: packageDirectory))
on: (self fileUtils parentDirectoryOf: packageDirectory)
fileName: (self fileUtils directoryName: packageDirectory).
reader hasGitFileTreeMetadata: self hasGitFileTreeMetadata.
reader withMonticelloMetadata: self withMonticelloMetadata.
^ reader
loadVersionInfo;
info
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ versionReaderForFileNamed: aString do: aBlock
ifNotNil: [ :class |
| reader |
reader := class on: s fileName: aString.
reader hasGitFileTreeMetadata: self hasGitFileTreeMetadata.
reader withMonticelloMetadata: self withMonticelloMetadata.
aBlock value: reader ] ]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
private
hasGitFileTreeMetadata
"GitFileTree metadata:
withMonticelloMetadata
"Monticello metadata:
- monticello.meta/version file
- method properties files
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"fileUtils" : "dkh 8/10/2012 14:55:31.237",
"flushCache" : "dkh 07/10/2013 11:43:55",
"goferVersionFrom:" : "dkh 07/10/2016 15:05",
"hasGitFileTreeMetadata" : "dkh 06/29/2016 17:25",
"packageDescriptionFromPackageDirectory:" : "dkh 6/27/2012 20:14",
"packageDescriptionsFromReadableFileNames" : "dkh 2/16/2012 14:49:00",
"packageExtension" : "dkh 2/29/2012 10:11",
Expand All @@ -32,14 +31,15 @@
"readonly" : "dkh 2/16/2012 14:49:00",
"readonly:" : "dkh 2/16/2012 14:49:00",
"repositoryProperties" : "dkh 8/10/2012 07:54",
"setNoMetadata" : "dkh 07/11/2016 12:05",
"setWithMetadata" : "dkh 07/11/2016 12:06",
"setNoMetadata" : "dkh 07/12/2016 06:35",
"setWithMetadata" : "dkh 07/12/2016 06:35",
"treeDirectoryNameForVersionNamed:" : "dkh 08/10/2012 02:55:31",
"versionFromFileNamed:" : "dkh 07/08/2013 10:59:46",
"versionInfoForPackageDirectory:" : "dkh 07/09/2016 08:52",
"versionInfoForPackageDirectory:" : "dkh 07/12/2016 06:34",
"versionInfoFromFileNamed:" : "dkh 07/08/2013 10:59:46",
"versionNameFromFileName:" : "dkh 2/16/2012 14:49:00",
"versionReaderForFileNamed:do:" : "dkh 07/09/2016 08:43",
"versionReaderForFileNamed:do:" : "dkh 07/12/2016 06:34",
"versionWithInfo:ifAbsent:" : "dkh 07/08/2013 10:59:46",
"withMonticelloMetadata" : "dkh 07/12/2016 06:32",
"writeRepositoryProperties" : "07/10/2013 06:44",
"writeStreamForFileNamed:replace:do:" : "dkh 2/16/2012 14:49:00" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ utilities
extractDependencyInfoFor: packageName
| depInfo |
depInfo := super extractDependencyInfoFor: packageName.
self hasGitFileTreeMetadata
self withMonticelloMetadata
ifFalse: [ depInfo name: packageName , '-cypress.1' ].
^ depInfo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"addMethodDefinitionsForClass:methodProperties:in:" : "dkh 01/31/2015 06:55",
"addMethodDefinitionsForClass:methodProperties:in:extensionMethod:" : "dkh 01/31/2015 06:56",
"basicVersion" : "dkh 07/09/2016 08:24",
"extractDependencyInfoFor:" : "dkh 07/09/2016 09:13",
"extractDependencyInfoFor:" : "dkh 07/12/2016 06:34",
"isMethodPropertyFile:" : "dkh 6/16/2013 12:47:20",
"isPropertyFile:" : "dkh 6/16/2013 12:47:20",
"loadDefinitions" : "dkh 5/23/2013 21:05",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ writeClassDefinition: definition to: classPath
fileName: 'properties'
extension: self propertyFileExtension
visit: [ self writeClassDefinition: definition ].
self repository hasGitFileTreeMetadata
self repository withMonticelloMetadata
ifTrue: [
self
writeInDirectoryName: classPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ writeDefinitions: aCollection
filename: filename ].
classPath := className , classDirExtension
, self fileUtils pathNameDelimiter asString.
self repository hasGitFileTreeMetadata
self repository withMonticelloMetadata
ifTrue: [
self
writeInDirectoryName: classPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"setFileStream:" : "dkh 4/4/2012 14:01",
"writeClassComment:" : "dkh 03/22/2013 11:30",
"writeClassDefinition:" : "dkh 03/22/2013 13:51",
"writeClassDefinition:to:" : "dkh 06/29/2016 17:53",
"writeDefinitions:" : "dkh 06/29/2016 17:53",
"writeClassDefinition:to:" : "dkh 07/12/2016 06:36",
"writeDefinitions:" : "dkh 07/12/2016 06:36",
"writeExtensionClassDefinition:" : "dkh 4/4/2012 17:52",
"writeExtensionClassDefinition:to:" : "dkh 07/07/2013 22:14",
"writeMethodDefinition:" : "dkh 03/22/2013 11:30",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
visiting
writeVersionInfo: aVersionInfo
self repository hasGitFileTreeMetadata
self repository withMonticelloMetadata
ifTrue: [ super writeVersionInfo: aVersionInfo ]
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"subPackageFileDirectoryFor:" : "dkh 8/10/2012 07:16",
"writeSnapshot:" : "dkh 2/16/2012 14:49:00",
"writeVersion:" : "dkh 8/10/2012 14:51",
"writeVersionInfo:" : "dkh 06/29/2016 17:26" } }
"writeVersionInfo:" : "dkh 07/12/2016 06:36" } }

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ testWrite01
version := (self getTestRepository: 'metadataless01')
versionWithInfo: versionInfo.
repo storeVersion: version.
self assert: repo hasGitFileTreeMetadata ].
self assert: repo withMonticelloMetadata ].
repo setNoMetadata.
#('AAA' 'BBB')
do: [ :pn |
Expand All @@ -26,7 +26,7 @@ testWrite01
version := (self getTestRepository: 'metadataless01')
versionWithInfo: versionInfo.
repo storeVersion: version.
self deny: repo hasGitFileTreeMetadata ].
self deny: repo withMonticelloMetadata ].
repo setWithMetadata.
#('AAA' 'BBB')
do: [ :pn |
Expand All @@ -35,4 +35,4 @@ testWrite01
version := (self getTestRepository: 'metadataless01')
versionWithInfo: versionInfo.
repo storeVersion: version.
self assert: repo hasGitFileTreeMetadata ]
self assert: repo withMonticelloMetadata ]
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ testWrite02
version := (self getTestRepository: 'metadataless02')
versionWithInfo: versionInfo.
repo storeVersion: version.
self assert: repo hasGitFileTreeMetadata ].
self assert: repo withMonticelloMetadata ].
repo setNoMetadata.
#('AAA')
do: [ :pn |
Expand All @@ -29,7 +29,7 @@ testWrite02
version := (self getTestRepository: 'metadataless02')
versionWithInfo: versionInfo.
repo storeVersion: version.
self deny: repo hasGitFileTreeMetadata ].
self deny: repo withMonticelloMetadata ].
repo setWithMetadata.
#('AAA')
do: [ :pn |
Expand All @@ -38,4 +38,4 @@ testWrite02
version := (self getTestRepository: 'metadataless02')
versionWithInfo: versionInfo.
repo storeVersion: version.
self assert: repo hasGitFileTreeMetadata ]
self assert: repo withMonticelloMetadata ]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tearDownPackagesList" : "dkh 07/08/2016 16:52",
"testLoad01" : "dkh 07/08/2016 16:56",
"testLoad02" : "dkh 07/09/2016 07:52",
"testWrite01" : "dkh 07/11/2016 12:40",
"testWrite02" : "dkh 07/11/2016 12:40",
"testWrite01" : "dkh 07/12/2016 06:35",
"testWrite02" : "dkh 07/12/2016 06:35",
"testWriteNRead01" : "dkh 07/11/2016 12:40",
"testWriteNRead02" : "dkh 07/11/2016 12:40" } }
Loading

0 comments on commit f27c265

Please sign in to comment.