mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: More diagnostics for new project vcs-es detection
This commit is contained in:
@@ -16,12 +16,17 @@
|
||||
package com.intellij.openapi.vcs.impl;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.Computable;
|
||||
import com.intellij.openapi.vcs.VcsBundle;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.ExceptionUtil;
|
||||
|
||||
public class VcsDescriptor implements Comparable<VcsDescriptor> {
|
||||
|
||||
private static final Logger LOG = Logger.getInstance(VcsDescriptor.class);
|
||||
|
||||
private final String myName;
|
||||
private final boolean myCrawlUpToCheckUnderVcs;
|
||||
private final String myDisplayName;
|
||||
@@ -61,7 +66,13 @@ public class VcsDescriptor implements Comparable<VcsDescriptor> {
|
||||
final String[] patterns = myAdministrativePattern.split(",");
|
||||
for (String pattern : patterns) {
|
||||
final VirtualFile child = file.findChild(pattern.trim());
|
||||
if (child != null) return true;
|
||||
if (child != null) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(myName + " vcs detected: " + pattern + " folder found in " + file + ". Trace: " +
|
||||
ExceptionUtil.getThrowableText(new Throwable()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user