DEBEAUPTE, Nicolas
2015-12-07 09:26:54 UTC
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
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