MCPcopy Index your code
hub / github.com/apache/pouchdb / makeRevTreeFromRevisions

Function makeRevTreeFromRevisions

lib/index.js:4555–4569  ·  view source on GitHub ↗
(revisions, opts)

Source from the content-addressed store, hash-verified

4553}
4554
4555function makeRevTreeFromRevisions(revisions, opts) {
4556 var pos = revisions.start - revisions.ids.length + 1;
4557
4558 var revisionIds = revisions.ids;
4559 var ids = [revisionIds[0], opts, []];
4560
4561 for (var i = 1, len = revisionIds.length; i < len; i++) {
4562 ids = [revisionIds[i], {status: 'missing'}, [ids]];
4563 }
4564
4565 return [{
4566 pos,
4567 ids
4568 }];
4569}
4570
4571// Preprocess documents, parse their revisions, assign an id and a
4572// 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…