IDEA-145934 Do not fail svn file status detection in case of WC_PATH_NOT_FOUND (svn: E155010) error occurs - such errors could be reported for non-existent paths (for instance, if some of the parent directories was previously moved) and in such cases we should just report "no changes" for given path (instead of reporting corresponding error)

This commit is contained in:
Konstantin Kolosovsky
2015-11-18 17:12:19 +03:00
parent de264d6311
commit 949b38b886
@@ -143,7 +143,7 @@ public class SvnRecursiveStatusWalker {
}
private void handleStatusException(@NotNull MyItem item, @NotNull SvnBindException e) throws SvnBindException {
if (e.contains(SVNErrorCode.WC_NOT_DIRECTORY) || e.contains(SVNErrorCode.WC_NOT_FILE)) {
if (e.contains(SVNErrorCode.WC_NOT_DIRECTORY) || e.contains(SVNErrorCode.WC_NOT_FILE) || e.contains(SVNErrorCode.WC_PATH_NOT_FOUND)) {
final VirtualFile virtualFile = item.getPath().getVirtualFile();
if (virtualFile != null && !isIgnoredByVcs(virtualFile)) {
// self is unversioned