rtc scm cli - how to unshare or delete a root folder
Simple problem, via scm command line I try to delete a root folder in a repository workspace.
I use scm.sh (platform is linux) to login and load a repository workspace. layout is simple: /projecta /projecttodelete /projectb Then I delete via "rm projecttodelete", and start a "scm status", systems detects the missing project: sho@linux:~/tmp/test> rm projecttodelete sho@linux:~/tmp/test> scm status Workspace: (1054) "sho test Workspace" <-> (1003) "test stream"> But what now? A checkin does not work (normally you must use the parent directory when you checkin deleted ressources, that is not possible here). I tried: sho@linux:~/tmp/test> scm checkin projecttodelete Problem running 'checkin': "/home/sho/tmp/test/projecttodelete" does not exist. This is right, as this it what I wanted. sho@linux:~/tmp/test> scm checkin /projecttodelete Problem running 'projecttodelete': "/projecttodelete" is not shared.I have not found any command like "unshare" (counterpart to share). The "-D" or "-S" parameter for checkin have no impact. And here I'm stuck. I'm missing the CLI counterpart to "delete from repository" in eclipse. Any ideas? |
Accepted answer
This doesn't appear to be possible. I would recommend opening a work item requesting a fix.
Note this was also asked in https://jazz.net/forum/questions/71919/how-to-checkin-project-delete-via-scm-cli
Stefan Hoffmann selected this answer as the correct answer
|
2 other answers
Ok, thanks. I've created a defect for this.
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=227726 |
With version 5.0.2, I was able to successfully run:
rm -rf dir_to_delete lscm checkin dir_to_delete lscm cs comment ... lscm deliver Mind you, in order to be able to carry out similar operations in two different components, I had to load each component in its own sandbox. The RTC CLI appears unable to cope with changes being made to more than one component in a sandbox. |
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.