コード例 #1
0
 private boolean checkForSwitchedRoots() {
   final List<WCInfo> infoList = myVcs.getAllWcInfos();
   boolean switchedFound = false;
   for (WCInfo wcInfo : infoList) {
     if (FileUtil.isAncestor(new File(myWcInfo.getPath()), new File(wcInfo.getPath()), true)
         && NestedCopyType.switched.equals(wcInfo.getType())) {
       switchedFound = true;
       break;
     }
   }
   if (switchedFound) {
     return prompt("There are some switched paths in the working copy. Do you want to continue?");
   }
   return true;
 }