Making more renaming subfolders more modular.
This commit is contained in:
parent
38a72d1f79
commit
ec04597451
@ -443,13 +443,19 @@ FossilRepo >> remote: anUrlString [
|
|||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
FossilRepo >> renameFrom: currentName to: newName [
|
FossilRepo >> renameFrom: currentName to: newName [
|
||||||
|
|
||||||
|
^ self renameFrom: currentName to: newName inSubfolder: self localRoot
|
||||||
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
FossilRepo >> renameFrom: currentName to: newName inSubfolder: aFolder [
|
||||||
|
|
||||||
OSSUnixSubprocess new
|
OSSUnixSubprocess new
|
||||||
command: 'fossil';
|
command: 'fossil';
|
||||||
arguments: {
|
arguments: {
|
||||||
'rename'.
|
'rename'.
|
||||||
currentName.
|
currentName basename.
|
||||||
newName };
|
newName basename};
|
||||||
workingDirectory: self localRoot;
|
workingDirectory: aFolder fullName;
|
||||||
redirectStdout;
|
redirectStdout;
|
||||||
redirectStderr;
|
redirectStderr;
|
||||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
||||||
|
Loading…
Reference in New Issue
Block a user