MCPcopy
hub / github.com/apache/pouchdb / makeRevTreeFromRevisions

Function makeRevTreeFromRevisions

lib/index.es.js:4550–4564  ·  view source on GitHub ↗
(revisions, opts)

Source from the content-addressed store, hash-verified

4548}
4549
4550function makeRevTreeFromRevisions(revisions, opts) {
4551 var pos = revisions.start - revisions.ids.length + 1;
4552
4553 var revisionIds = revisions.ids;
4554 var ids = [revisionIds[0], opts, []];
4555
4556 for (var i = 1, len = revisionIds.length; i < len; i++) {
4557 ids = [revisionIds[i], {status: 'missing'}, [ids]];
4558 }
4559
4560 return [{
4561 pos,
4562 ids
4563 }];
4564}
4565
4566// Preprocess documents, parse their revisions, assign an id and a
4567// revision for new writes that are missing them, etc

Callers 1

parseDocFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…