Updating before migration to Git.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2020-05-02 13:29:57 +00:00
parent 67db468dca
commit 7febe22d33

View File

@ -98,6 +98,27 @@ FossilRepo >> commit: message [
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
]
{ #category : #operation }
FossilRepo >> commit: message withEnabledWarnings: aBoolean [
"I add a file to the working Fossil repository, given that both, the file and the repositor,
share the same root directory/folder."
| warningCommand |
warningCommand := aBoolean
ifFalse: [ '' ]
ifTrue: [ '--no-warnings' ].
OSSUnixSubprocess new
command: self class locateExecutable;
arguments:
{'commit'.
warningCommand.
'-m'.
message};
workingDirectory: self localFolderName;
redirectStdout;
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
]
{ #category : #wiki }
FossilRepo >> createPage: pageName [
^ NeoJSONReader fromString: (self jsonWikiDataFor: 'create/', pageName)
@ -145,9 +166,9 @@ FossilRepo >> getPageContentsFor: anEmbeddedDocUrl [
{ #category : #operation }
FossilRepo >> init: absolutePathString [
"I add a file to the working Fossil repository, given that both, the file and the repositor,
share the same root directory/folder."
"I init a repository in a given location."
Smalltalk os isWindows ifTrue: [ ^ self ].
absolutePathString asFileReference exists ifTrue: [ ^ self ].
OSSUnixSubprocess new
command: self class locateExecutable;
arguments: { 'init' . absolutePathString };