Jump to content

How to set a workspace to active from the CommandLine


wvd_vegt

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...