It's all about the answers!

Ask a question

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


Jörg Werner (3033781) | asked Nov 07 '16, 10:58 a.m.
edited Nov 07 '16, 2:18 p.m. by David Lafreniere (4.8k7)
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

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Nov 07 '16, 2:16 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

Comments
anoop mc commented Oct 15 '17, 5:02 a.m. | edited Oct 15 '17, 1:29 p.m.

 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


Geoffrey Clemm commented Oct 15 '17, 1:32 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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