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

Function makeRevTreeFromRevisions

lib/index-browser.js:4302–4316  ·  view source on GitHub ↗
(revisions, opts)

Source from the content-addressed store, hash-verified

4300}
4301
4302function makeRevTreeFromRevisions(revisions, opts) {
4303 var pos = revisions.start - revisions.ids.length + 1;
4304
4305 var revisionIds = revisions.ids;
4306 var ids = [revisionIds[0], opts, []];
4307
4308 for (var i = 1, len = revisionIds.length; i < len; i++) {
4309 ids = [revisionIds[i], {status: 'missing'}, [ids]];
4310 }
4311
4312 return [{
4313 pos,
4314 ids
4315 }];
4316}
4317
4318// Preprocess documents, parse their revisions, assign an id and a
4319// 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…