wvd_vegt Posted April 12, 2012 Report Share Posted April 12, 2012 Hi, I'm trying to move an old vss project to a plasticscm repo call Projects. I use the following script that I generated from vss data so the revisions are kept (hence the two checkins) : cm mkwk "004 Log Eta" "C:\workspaces\projects\004 Log Eta" "--selector=C:\workspaces\projects\004 Log Eta\selector.txt" pause cm add "C:\workspaces\projects\004 Log Eta" cm add "C:\workspaces\projects\004 Log Eta\LOG_ETA.PAS" cm add "C:\workspaces\projects\004 Log Eta" cm add "C:\workspaces\projects\004 Log Eta\NOTES.TXT" cm add "C:\workspaces\projects\004 Log Eta" cm add "C:\workspaces\projects\004 Log Eta\VERSION.TXT" cm add "C:\workspaces\projects\004 Log Eta\MISC" cm add "C:\workspaces\projects\004 Log Eta\MISC\GRAFTABL.COM" cm add "C:\workspaces\projects\004 Log Eta\TPU55" cm add "C:\workspaces\projects\004 Log Eta\TPU55\CSR_01.PAS" cm add "C:\workspaces\projects\004 Log Eta\TPU55\OBJ_01.PAS" cm add "C:\workspaces\projects\004 Log Eta\TPU55\ROUTINES.PAS" cm checkin "C:\workspaces\projects\004 Log Eta" cm add "C:\workspaces\projects\004 Log Eta" cm add "C:\workspaces\projects\004 Log Eta\LOG_ETA.EXE" cm add "C:\workspaces\projects\004 Log Eta" cm add "C:\workspaces\projects\004 Log Eta\LOG_ETA.MAP" cm checkin "C:\workspaces\projects\004 Log Eta" and a selector.txt containing: repository "Projects" path "/" br "/main" co "/main" I already found that I had to add the subdirectories also or items in them would not be added. Sofar so good. BUT the script fails if i do not mark the workspace as Active at the spot of the pause statement. If i don't i get merge messages with a totally different workspace not even near to this one on my HD. However I could not find a cm command to mark a workspace as active or assign the workspace to a particular repository. regards wvd_vegt Link to comment Share on other sites More sharing options...
wvd_vegt Posted April 14, 2012 Author Report Share Posted April 14, 2012 Hi Got it, it was a matter of ensuring the cm command has the repository as current directory. Migration of vss to plasticscm now starts running smoothly (for a single user vss without branches). Link to comment Share on other sites More sharing options...
manu Posted April 16, 2012 Report Share Posted April 16, 2012 Great! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.