How to add a file in a sub-directory with lscm?
First I load a file from my workspace in a sub directory while I am in a directory that is my sandbox:
lscm load -r my_repository -t root/subdir my_workspace my_component/root/subdir/file1 Now I have the file (relative to my sandbox where I executed the command) in: root/subdir/file1 Now I create a new file in that subdir: echo "a test" > root/subdir/new_file If I tried to checkin the new_file, 'lscm checkin' tells me it isn't shared. So I tried to share it: lscm share -r my_repository --verbose --remotePath root/subdir my_workspace my_component root/subdir/new_file But lscm prints out: Cannot share projects under "<my path to sandbox>/root/subdir" - ancestor is shared: "<my path to sandbox>". Try 'lscm help share' for more information. So how do I checkin the new_file to my workspace into its correct place in root/subdir? Regards, Markus. |
Accepted answer
Shashikant Padur (4.3k●2●7)
| answered Feb 26 '15, 12:45 a.m.
JAZZ DEVELOPER edited Feb 26 '15, 3:31 a.m.
In your case RTC only tracks the file under root/subdir and not the directory itself. To track the directory you have to load at the directory level: lscm load -r my_repository -t root/subdir my_workspace my_component/root/subdir
After which adding files under root/subdir will be tracked.
Markus Selve selected this answer as the correct answer
Comments Thanks a lot for your answer!
Acknowledged. Thanks. |
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.