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:
Who can help me?
thank you, jörg
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 repProbably I miss something and do it in the wrong way :-(.
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".
Who can help me?
thank you, jörg
Accepted answer
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.