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

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">
  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?

0 votes


Accepted answer

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

0 votes


2 other answers

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

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
× 12,029
× 1,204
× 87

Question asked: Aug 17 '12, 7:49 a.m.

Question was seen: 7,051 times

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

Confirmation Cancel Confirm