예제 #1
0
 /** {@inheritDoc} */
 @Override
 public CheckInScmResult executeCheckInCommand(
     ScmProviderRepository repository, ScmFileSet fileSet, String message, ScmVersion scmVersion)
     throws ScmException {
   getLogger()
       .info(
           "Attempting to check-in updates from sandbox "
               + fileSet.getBasedir().getAbsolutePath());
   IntegrityScmProviderRepository iRepo = (IntegrityScmProviderRepository) repository;
   Sandbox siSandbox = iRepo.getSandbox();
   List<ScmFile> changedFiles = siSandbox.checkInUpdates(message);
   if (siSandbox.getOverallCheckInSuccess()) {
     return new CheckInScmResult("si ci/drop", changedFiles);
   } else {
     return new CheckInScmResult(
         changedFiles,
         new ScmResult("si ci/drop", "There was a problem updating the repository", "", false));
   }
 }