Example #1
0
 /**
  * Find the artifact commit list associated with a commit ID.
  *
  * @param ch commit history, already populated with commit ID records
  * @param id commit identifier
  * @return commit matching the given ID, or null
  */
 private ArtifactCommit findCommit(CommitHistory ch, String id) {
   if (ch != null) {
     for (ArtifactCommit ac : ch.getCommitRecord()) {
       if (ac.getCommitIdentifier().equals(id)) {
         return ac;
       }
     }
   }
   return null;
 }