Updating before migration to Git.
This commit is contained in:
parent
67db468dca
commit
7febe22d33
@ -98,6 +98,27 @@ FossilRepo >> commit: message [
|
|||||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
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 }
|
{ #category : #wiki }
|
||||||
FossilRepo >> createPage: pageName [
|
FossilRepo >> createPage: pageName [
|
||||||
^ NeoJSONReader fromString: (self jsonWikiDataFor: 'create/', pageName)
|
^ NeoJSONReader fromString: (self jsonWikiDataFor: 'create/', pageName)
|
||||||
@ -145,9 +166,9 @@ FossilRepo >> getPageContentsFor: anEmbeddedDocUrl [
|
|||||||
|
|
||||||
{ #category : #operation }
|
{ #category : #operation }
|
||||||
FossilRepo >> init: absolutePathString [
|
FossilRepo >> init: absolutePathString [
|
||||||
"I add a file to the working Fossil repository, given that both, the file and the repositor,
|
"I init a repository in a given location."
|
||||||
share the same root directory/folder."
|
|
||||||
Smalltalk os isWindows ifTrue: [ ^ self ].
|
Smalltalk os isWindows ifTrue: [ ^ self ].
|
||||||
|
absolutePathString asFileReference exists ifTrue: [ ^ self ].
|
||||||
OSSUnixSubprocess new
|
OSSUnixSubprocess new
|
||||||
command: self class locateExecutable;
|
command: self class locateExecutable;
|
||||||
arguments: { 'init' . absolutePathString };
|
arguments: { 'init' . absolutePathString };
|
||||||
|
Loading…
Reference in New Issue
Block a user