how to checkin project delete via scm cli
Hello,
we're using RTC 3.0.1.2 on a linux box and try to delete projects from components via cli.
In the Info Center we didn't find any cli command to do the "delete from Repository", which is available in the eclipse GUI client.
Example:
How to checkin the Unresolved project delete since the checkin cli command expects a Path which is not available since the project is going to be deleted?
Any help is much appreciated.
kind regards
Mike
we're using RTC 3.0.1.2 on a linux box and try to delete projects from components via cli.
In the Info Center we didn't find any cli command to do the "delete from Repository", which is available in the eclipse GUI client.
Example:
> scm status
Workspace: (1714) "TEST_Workspace" <-> (1715) "TEST_Stream"
Component: (1578) "BuildManagement" <-> (1715) "TEST_Stream"
Unresolved:
d-- /Test4CVS
How to checkin the Unresolved project delete since the checkin cli command expects a Path which is not available since the project is going to be deleted?
Any help is much appreciated.
kind regards
Mike
6 answers
Hi Ralph,
I know that article quit good. :-)
The problem here is, that there seem to be no operation for the SCM CLI available to delete a project from a component. In the eclipse Client there is a special GUI Action available to delete a project from a component:(right click on eclipse project) "Team > Delete from Repository"
The scm checkin command expects a path to the ressource which I want to delete. Since there is no path to the deleted project the command cannot be issued.
Cheers
Mike
I know that article quit good. :-)
The problem here is, that there seem to be no operation for the SCM CLI available to delete a project from a component. In the eclipse Client there is a special GUI Action available to delete a project from a component:(right click on eclipse project) "Team > Delete from Repository"
The scm checkin command expects a path to the ressource which I want to delete. Since there is no path to the deleted project the command cannot be issued.
Cheers
Mike
Hi Mike,
you got me here. I just tried a bit and even tried to delete the project from disk and check in the changes. In the UI then the workspace considers the component to be unloaded. With all I tried I left over at least a root folder that would recreate a project on load.
The SCM commandline is getting better, but it is not complete, I guess.
I would suggest you create an enhancement request for this.
you got me here. I just tried a bit and even tried to delete the project from disk and check in the changes. In the UI then the workspace considers the component to be unloaded. With all I tried I left over at least a root folder that would recreate a project on load.
The SCM commandline is getting better, but it is not complete, I guess.
I would suggest you create an enhancement request for this.
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.