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

SCM checkin: Problem running 'share' - ancestor is shared

Hi all,

I want to checkin a directory structure. Single files are no problems but I don't know how to checkin  files in sub directories.

In the example I create some files and a sub directory and try to check in everything to a component:

lscm login -r https://my_server/ccm/ -u admin -P ADMIN -n rep

lscm create workspace -r rep my_workspace
lscm create component -r rep my_comp my_workspace
lscm load -r rep -d my_dir my_workspace

cd my_dir
echo test > my_file.txt

lscm share -r rep my_workspace my_comp my_file.txt
lscm checkin my_file.txt

echo test > my_file2.txt

lscm share -r rep my_workspace my_comp my_file2.txt
lscm checkin my_file2.txt

mkdir sub_dir
echo test > sub_dir/a.txt

lscm share -r rep my_workspace my_comp sub_dir/*

Problem running 'share':
Cannot share projects under "C:\daten\my_dir\sub_dir" - ancestor is shared: "C:\daten\my_dir".


Probably I miss something and do it in the wrong way :-(.
 Who can help me?

  thank you, jörg

0 votes


Accepted answer

Permanent link
In Jazz SCM, when you either 'load' or 'share' a folder, there is no need to call 'share' on any child of that folder. If changes are made to child files or folder, you simply need to perform a checkin on those files/folders to add them to a change set.
Jörg Werner selected this answer as the correct answer

0 votes

Comments

 Can you please make the above statement clear as I am also facing the same issue. When we tried to checkin those files it says


Problem running 'checkin':
"/opt/workspace/ConfigurationManagement/package/test.txt" is not shared.

Below is what we are trying to run using share command

rtc_share

 You report that the error message is "Problem running 'checkin'", but in the screen shot, the error message is "Problem running 'share'".

Did you use "checkin" or "share" ?(David said to use "checkin", but from the screenshot, you appear to be using "share").

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,025
× 1,204
× 11

Question asked: Nov 07 '16, 10:58 a.m.

Question was seen: 3,219 times

Last updated: Oct 15 '17, 1:32 p.m.

Confirmation Cancel Confirm