Enabling local repositories.
This commit is contained in:
parent
d57f3e5606
commit
89cd7daa18
@ -611,17 +611,19 @@ GrafoscopioBrowser >> defineRemoteRepository [
|
|||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #persistence }
|
{ #category : #persistence }
|
||||||
GrafoscopioBrowser >> enableRepository [
|
GrafoscopioBrowser >> enableLocalRepository [
|
||||||
"Just a temporary message to enable working with fossil on a specific repository. This should be generalized"
|
"Just a temporary message to enable working with fossil on a specific repository. This should be generalized"
|
||||||
|
|
||||||
| repositoryLocalPath repositoryRemotePath |
|
| fileStream |
|
||||||
(FileSystem disk workingDirectory / 'Grafoscopio' / 'Projects' / 'SoftwareLibre-Educacion') ensureCreateDirectory.
|
|
||||||
repositoryLocalPath := (FileSystem disk workingDirectory / 'Grafoscopio' / 'Projects' / 'SoftwareLibre-Educacion') fullName.
|
fileStream := UITheme builder
|
||||||
repositoryRemotePath := 'http://mutabit.com/deltas/repos.fossil/soliedu'.
|
fileOpen: 'Coloque la ruta al repositorio del proyecto (.fossil)'
|
||||||
OSProcess command: 'cd ', repositoryLocalPath,'; ',
|
extensions: #('fossil').
|
||||||
fossil, ' clone ', repositoryRemotePath, ' soliedu.fossil; ',
|
fileStream isNil ifTrue: [ ^nil ].
|
||||||
fossil, ' open ', repositoryLocalPath, '/soliedu.fossil ;',
|
localRepository := fileStream name asFileReference.
|
||||||
' echo "fossil repo OK"'.
|
OSProcess command:
|
||||||
|
'cd ', localRepository parent fullName,';',
|
||||||
|
'exec ', fossil, ' open ', localRepository fullName.
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #persistence }
|
{ #category : #persistence }
|
||||||
@ -1178,7 +1180,7 @@ GrafoscopioBrowser >> treeOn: constructor [
|
|||||||
act: [self addToTagsAvailable] entitled: 'Agregar a disponibles' categorized: 'Etiquetas';
|
act: [self addToTagsAvailable] entitled: 'Agregar a disponibles' categorized: 'Etiquetas';
|
||||||
|
|
||||||
"For projects"
|
"For projects"
|
||||||
act: [self messageNotImplementedYet "enableRepository"] entitled: 'Activar' categorized: 'Proyecto';
|
act: [self enableLocalRepository] entitled: 'Activar repositorio local...' categorized: 'Proyecto';
|
||||||
act: [self messageNotImplementedYet "addFileToRepository"] entitled: 'Agregar archivo' categorized: 'Proyecto';
|
act: [self messageNotImplementedYet "addFileToRepository"] entitled: 'Agregar archivo' categorized: 'Proyecto';
|
||||||
act: [self messageNotImplementedYet] entitled: 'Eliminar archivo' categorized: 'Proyecto';
|
act: [self messageNotImplementedYet] entitled: 'Eliminar archivo' categorized: 'Proyecto';
|
||||||
act: [self messageNotImplementedYet "repositoryCommit"] entitled: 'Enviar al histórico' categorized: 'Proyecto';
|
act: [self messageNotImplementedYet "repositoryCommit"] entitled: 'Enviar al histórico' categorized: 'Proyecto';
|
||||||
|
Loading…
Reference in New Issue
Block a user