code: public static List<String> createRevisionIdHistory(DocumentRevs documentRevs) {
          validateDocumentRevs(documentRevs);
  
          String latestRevision = documentRevs.getRev();
          int generation = CouchUtils.generationFromRevId(latestRevision);
          assert generation == documentRevs.getRevisions().getStart();
  
          List<String> revisionHistory = CouchUtils.couchStyleRevisionHistoryToFullRevisionIDs
                  (generation, documentRevs.getRevisions().getIds());
          logger.log(Level.FINER, "Revisions history: " + revisionHistory);
          return revisionHistory;
      }
docs: Create the list of the revision IDs in ascending order.
  
  The DocumentRevs is for a single tree. There should be one DocumentRevs for each open revision.
  @param documentRevs a deserialised JSON document including the _revisions structure. See
  <a target="_blank" href="http://docs.couchdb.org/en/latest/api/document/common.html#getting-a-list-of-revisions">
  Getting a List of Revisions</a> for more information.
  @return list of revision IDs in ascending order