Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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:

> 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

0 votes



6 answers

Permanent link
Hi,

have looked into the library? This article might help: https://jazz.net/library/article/620

0 votes


Permanent link
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

0 votes


Permanent link
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.

0 votes


Permanent link
Can you checkin the parent directory? That's how to delete a file deeper in the hierarchy (took me forever to work that out).

Cheers,

Tim

0 votes


Permanent link
Hi Tim,

I did not try with the CLI, but with the client. If the project folder is deleted, the client seem to assume the component is not loaded. I think there is a substantial difference how the project folder is handled compared to other files/folders..

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 15 '12, 9:19 a.m.

Question was seen: 5,031 times

Last updated: Mar 10 '15, 3:27 p.m.

Confirmation Cancel Confirm