code: void analyseRevision(R revision, List<E> previous)
      {
          if (currentRevision == null) {
              return;
          }
  
          if (previous == null || previous.isEmpty()) {
              resolveRemainingToCurrent();
          } else {
              resolveToCurrent(DiffUtils.diff(currentRevisionContent, previous).getDeltas());
              assert currentRevisionContent.equals(previous) : "Patch application failed";
          }
  
          currentRevision = revision;
      }
docs: Resolve revision of line to current revision based on given previous content, and prepare for next analysis.
  
  @param revision the revision of the content provided.
  @param previous the content in a previous revision.