New. #changeCVSRoot:inDirectoryTree:
authorStefan Vogel <sv@exept.de>
Thu, 12 Oct 2006 12:21:39 +0200
changeset 1861 ee2942e14d27
parent 1860 c092daa2828f
child 1862 c3370d61037d
New. #changeCVSRoot:inDirectoryTree:
CVSSourceCodeManager.st
--- a/CVSSourceCodeManager.st	Thu Oct 12 11:14:28 2006 +0200
+++ b/CVSSourceCodeManager.st	Thu Oct 12 12:21:39 2006 +0200
@@ -450,6 +450,26 @@
     CVSModuleRoots := aDictionary
 ! !
 
+!CVSSourceCodeManager class methodsFor:'misc operations'!
+
+changeCVSRoot:newRootString inDirectoryTree:aDirectoryFilename
+    "change the CVS root to newRootString (something like:':pserver:user@cvs.bh.exept.de:/cvs/stx').
+     aDirectoryFilename is recursively descended"
+
+
+    aDirectoryFilename asFilename allDirectoriesDo:[:eachDirectoryName|
+        eachDirectoryName baseName = 'CVS' ifTrue:[
+            (eachDirectoryName construct:'Root') writeStream 
+                nextPutLine:newRootString;
+                close.
+        ].
+    ].
+
+    "
+        self changeCVSRoot:':pserver:stefan@cvs.bh.exept.de:/cvs/stx' inDirectoryTree:'~/deliver/stx'
+    "
+! !
+
 !CVSSourceCodeManager class methodsFor:'private'!
 
 checkOut:relativeFilename module:moduleDir in:tempdir
@@ -4455,7 +4475,7 @@
 !CVSSourceCodeManager class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic3/CVSSourceCodeManager.st,v 1.335 2006-10-12 09:04:44 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic3/CVSSourceCodeManager.st,v 1.336 2006-10-12 10:21:39 stefan Exp $'
 ! !
 
 CVSSourceCodeManager initialize!