Addind directory with includeIgnored and depth set to INFINITY

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Addind directory with includeIgnored and depth set to INFINITY

DEBEAUPTE, Nicolas

Hello,

 

When adding a directory (WCClient.doAdd) with includeIgnored set to false and depth set to INFINITY, ignored patterns are applied only for files at the first level in the directory (as if the depth was IMMEDIATES). Files located in deeper levels and matching the ignored patterns are added but should not.

 

When inspecting the code of the class SvnNgAdd, it appears that the boolean parameter refreshIgnores is force to false in the method addDirectory. That will disable the pattern ignorement mechanism :

 

                if (refreshIgnores && !entryExists) {

                    refreshIgnores = false;

                }

   addDirectory(children[i], depthBelow, refreshIgnores);

 

 

Is there a reason for such a code or is it a wrong behavior of the method ?

 

Thanks for your answer.

 

 

Nicolas DEBEAUPTE