It's all about the answers!

Ask a question

rtc scm cli - how to unshare or delete a root folder


Stefan Hoffmann (14411820) | asked Aug 17 '12, 7:49 a.m.
edited Aug 17 '12, 7:54 a.m.
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">
  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


permanent link
DJ Houghton (2663) | answered Aug 20 '12, 2:31 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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



permanent link
John Bayley (122) | answered Mar 10 '15, 3:16 p.m.
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.


permanent link
Stefan Hoffmann (14411820) | answered Aug 21 '12, 2:38 a.m.
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

Your answer


Register or 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.