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:
Then I delete via "rm projecttodelete", and start a "scm status", systems detects the missing project:
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:
This is right, as this it what I wanted.
And here I'm stuck. I'm missing the CLI counterpart to "delete from repository" in eclipse. Any ideas?
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">
Component: (1006) "test-source"
Baseline: (1007) 1 "Initial Baseline"
Unresolved:
d-- /projecttodelete
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
2 other answers
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.
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.