コード例 #1
0
 private void moveForCustomBinaries(
     final List<Pair<VirtualFile, ApplyFilePatchBase<BinaryType>>> patches,
     final List<FilePatch> appliedPatches)
     throws IOException {
   for (Pair<VirtualFile, ApplyFilePatchBase<BinaryType>> patch : patches) {
     if (appliedPatches.contains(patch.getSecond().getPatch())) {
       myVerifier.doMoveIfNeeded(patch.getFirst());
     }
   }
 }
コード例 #2
0
 private static List<ShelvedBinaryFile> getBinaryFilesToUnshelve(
     final ShelvedChangeList changeList,
     final List<ShelvedBinaryFile> binaryFiles,
     final List<ShelvedBinaryFile> remainingBinaries) {
   if (binaryFiles == null) {
     return new ArrayList<ShelvedBinaryFile>(changeList.getBinaryFiles());
   }
   ArrayList<ShelvedBinaryFile> result = new ArrayList<ShelvedBinaryFile>();
   for (ShelvedBinaryFile file : changeList.getBinaryFiles()) {
     if (binaryFiles.contains(file)) {
       result.add(file);
     } else {
       remainingBinaries.add(file);
     }
   }
   return result;
 }