It's all about the answers!

Ask a question

Load collision in CLI when re-loading an item a directory

Karen Mosca (1111) | asked May 23 '13, 12:20 p.m.


item-repository=sqltest/select1    (where select1 contains directories s1,s2,s3)

I load the item in a local workspace successfully (using loadrules).  


        <component name="Test" />

        <item repositoryPath="/sqltest/select1" />

        <sandboxRelativePath pathPrefix="/sql" />


Directory "sql/select1" is created in my local workspace and contains  s1, s2, s3

I then want to reload "select1/s1" using this loadrule and the -f option, 


        <component name="Test" />

        <item repositoryPath="/sqltest/select1/s1" />

        <sandboxRelativePath pathPrefix="/sql/select1" />


but get the error


          Problem running 'load'.

         Load could not complete due to collisions. Choose a different destination for the load

I can reload "select1" with the -f option, but not the subdir "select1/s1"

The same error occurs in reverse -  load "select1/s1"  and then try to load the full "select1" directory

Why won't the -f option allow the overwrite?  Is there a way to do this using cli and loadrules?

2 answers

permanent link
sorin cucu (1) | answered Nov 23 '15, 6:41 p.m.
Use:  lscm load  -r local -i --all BuildWorkspace 

permanent link
Chris McGee (50511117) | answered Nov 27 '15, 10:22 a.m.
The collision is caused by the fact that you have already loaded folder sqltest/select1 into the sandbox under /sql and attempt to load a sqltest/select1/s1 into a folder underneath /sql/select1. RTC SCM does not currently allow you to next share roots in the sandbox.

The first load rule should have loaded the s1 folder into the sandbox, why not use that? If you want to load only the subfolder then why not adjust the first load rule to load the s1 folder and try it on a fresh sandbox?

Your answer

Register or to post your answer.