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 ; }
Create the list of the revision IDs in ascending order .