Andy Levy wrote:
>
>
> Just check out a new working copy and then copy any uncommitted
> changes from the restored backup into it. Working Copies are meant to
> be disposable.
>
Thats Junk.....
Or I could just do the following which i cobbled together
____________________________________________________________________________
// Create File System Objectvar
var fso = new ActiveXObject( "Scripting.FileSystemObject" );
// variable to hold folder and file names.
var msg = "";
// call the function scandir - passing it the
// directory where we want to start the
scandir( "C:\\Code" );
// Function to scan directory
function scandir( dir ){
// Get Current Folder
var srcFolder = fso.GetFolder( dir );
msg += "Folder: " + srcFolder.Name + "\n";
// Get Files in current directory
var files = new Enumerator( srcFolder.files );
// Loop through files
for(; !files.atEnd(); files.moveNext() )
{
// You have access to each file one at a time
// in an entire directory tree. Here we grab
// the files name and add to our message variable
msg += files.item().Name + "\n";
}
// Display the data get gathered. (Folder Name and Files)
//WScript.Echo( msg );
// Clear the variable for the next directory
msg = "";
// Get any sub folders to current directory
var esub = new Enumerator( srcFolder.SubFolders );
var didFindTmp=false;
// Loop through sub folder list and scan
// through a recursive call to this function
for(; !esub.atEnd(); esub.moveNext() ) {
var f = fso.GetFolder( esub.item() ); scandir( f );
if(f.Name=="tmp"){
didFindTmp=true;
}
}
if(srcFolder.Name==".svn" && didFindTmp==false){
fso.CreateFolder(srcFolder.Path+"\\tmp");
//WScript.Echo( srcFolder.Path );
}
}
--
View this message in context: http://www.nabble.com/Restore-from-backup-lost-every-.svn-tmp-folder-tf4474764.html#a12758769
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 18 16:57:37 2007