Examples of files()


Examples of org.sonar.api.scan.filesystem.ModuleFileSystem.files()

    };
  }

  private JsTestDriverSensor mock_sensor_for_SQ_over_4_0() {
    ModuleFileSystem fs = mock(ModuleFileSystem.class);
    when(fs.files(any(FileQuery.class))).thenReturn(ImmutableList.of(new File("mock")));

    return new JsTestDriverSensor(fs, settings);
  }

}
View Full Code Here

Examples of org.tmatesoft.hg.internal.ManifestRevision.files()

    // XXX NOTE, use of TIP for working copy parent is questionable, at least. Instead, TIP shall mean latest cset or not allowed at all
    ManifestRevision collect = null; // non null indicates we compare against base revision
    Set<Path> baseRevFiles = Collections.emptySet(); // files from base revision not affected by status calculation
    if (baseRevision != TIP && baseRevision != WORKING_COPY) {
      collect = getManifest(baseRevision);
      baseRevFiles = new TreeSet<Path>(collect.files());
    }
    if (inspector instanceof HgStatusCollector.Record) {
      HgStatusCollector sc = baseRevisionCollector == null ? new HgStatusCollector(repo) : baseRevisionCollector;
      // nodeidAfterChange(dirstate's parent) doesn't make too much sense,
      // because the change might be actually in working copy. Nevertheless,
View Full Code Here

Examples of org.tmatesoft.hg.internal.ManifestRevision.files()

    r1 = get(rev1);
    r2 = get(rev2);

    final CancelSupport cs = CancelSupport.Factory.get(inspector);

    Collection<Path> allBaseFiles = r1.files();
    TreeSet<Path> r1Files = new TreeSet<Path>(allBaseFiles);
    for (Path r2fname : r2.files()) {
      if (!scope.accept(r2fname)) {
        continue;
      }
View Full Code Here

Examples of org.tmatesoft.hg.internal.ManifestRevision.files()

      m2 = new ManifestRevision(cacheRevs, cacheFiles).init(repo, secondCset);
      ma = new ManifestRevision(cacheRevs, cacheFiles).init(repo, ancestorCset);
      Transaction transaction = implRepo.getTransactionFactory().create(repo);
      ResolverImpl resolver = new ResolverImpl(implRepo, dirstateBuilder, mergeStateBuilder);
      try {
        for (Path f : m1.files()) {
          Nodeid fileRevBase, fileRevA, fileRevB;
          if (m2.contains(f)) {
            fileRevA = m1.nodeid(f);
            fileRevB = m2.nodeid(f);
            fileRevBase = ma.contains(f) ? ma.nodeid(f) : null;
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.SegmentInfo.files()

      // Save files so we can decr on next checkpoint/commit:
      size = segmentInfos.size();
      for(int i=0;i<size;i++) {
        SegmentInfo segmentInfo = segmentInfos.info(i);
        if (segmentInfo.dir == directory) {
          lastFiles.add(segmentInfo.files());
        }
      }
    }
    if (docWriterFiles != null)
      lastFiles.add(docWriterFiles);
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.SegmentInfo.files()

  void incRef(SegmentInfos segmentInfos, boolean isCommit) throws IOException {
    int size = segmentInfos.size();
    for(int i=0;i<size;i++) {
      SegmentInfo segmentInfo = segmentInfos.info(i);
      if (segmentInfo.dir == directory) {
        incRef(segmentInfo.files());
      }
    }

    if (isCommit) {
      // Since this is a commit point, also incref its
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.SegmentInfo.files()

  void decRef(SegmentInfos segmentInfos) throws IOException {
    final int size = segmentInfos.size();
    for(int i=0;i<size;i++) {
      SegmentInfo segmentInfo = segmentInfos.info(i);
      if (segmentInfo.dir == directory) {
        decRef(segmentInfo.files());
      }
    }
  }

  private RefCount getRefCount(String fileName) {
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.SegmentInfo.files()

      files.add(segmentsFileName);
      gen = segmentInfos.getGeneration();
      for(int i=0;i<size;i++) {
        SegmentInfo segmentInfo = segmentInfos.info(i);
        if (segmentInfo.dir == directory) {
          files.addAll(segmentInfo.files());
        }
      }
    }

    /**
 
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.SegmentInfo.files()

    for(int i=0;i<numSegmentsToMerge;i++) {
      final SegmentInfo previousInfo = sourceSegmentsClone.info(i);
      // Decref all files for this SegmentInfo (this
      // matches the incref in mergeInit):
      if (previousInfo.dir == directory)
        deleter.decRef(previousInfo.files());
    }
  }

  /**
   * Merges the indicated segments, replacing them in the stack with a
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.SegmentInfo.files()

      SegmentInfo si = merge.segmentsClone.info(i);

      // IncRef all files for this segment info to make sure
      // they are not removed while we are trying to merge.
      if (si.dir == directory)
        deleter.incRef(si.files());
    }

    merge.increfDone = true;

    merge.mergeDocStores = mergeDocStores;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.