private MaterialRevisions runAndPassWith(
     SvnMaterial svn,
     String checkinFile,
     MaterialRevisions revsAfterFoo,
     final SvnTestRepo svnRepository)
     throws Exception {
   MaterialRevisions newRevs = checkinFile(svn, checkinFile, svnRepository);
   if (revsAfterFoo != null) {
     for (MaterialRevision newRev : newRevs) {
       newRev.addModifications(revsAfterFoo.getModifications(newRev.getMaterial()));
     }
   }
   runAndPass(newRevs);
   return newRevs;
 }
Пример #2
0
 public void addNewMaterialWithModifications(Material material, File folder) {
   MaterialRevisions materialRevisions = materialRepository.findLatestModification(material);
   Modifications list = materialRevisions.getModifications(material);
   insertLatestOrNewModifications(
       material, materialRepository.findOrCreateFrom(material), folder, list);
 }