scm cli how to re-sync a workspace?
We are using the RTC CLI to load multiple versions of a component into RTC3.
|
Accepted answer
Load has a switch for force (-f) which will ensure the latest copy is on disk no matter what is checked in. If you are sure that the repository workspace has the best stuff (and not the sandbox), load -force will work.
In terms of the discussion between Tim & Virginia ... if there is some strange behaviour there, we should create a work item to follow up on this.
JohnC
SCM Lead
Virginia Brown selected this answer as the correct answer
Comments
Virginia Brown
commented Feb 03 '13, 11:35 a.m.
Thanks John the --force option worked for us. we create a workspace, delete any removed projects (via a prompt to the user), do a load --force, add any new projects, do a load --force, then finally perform updates |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
It would be interesting to know what is causing your workspace to become out of sync. It might be the way the projects are being shared. What CLI commands are being run?
Tim -
We load the workspace and compare it against the new version, which has been exported to a file system, to determine if there are any new projects. The new projects are shared, checked-in, and delivered. (It's useful to keep the delete/add/update operations atomic in case of failure.)
How are you sharing the new projects? If you are copying the new projects, there might have been an accidental copy of the metadata from the new version to where you've loaded your workspace. This could cause an out-of-sync situation.