MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / getInfo

Method getInfo

db/revtree.go:277–283  ·  view source on GitHub ↗

Returns the RevInfo for a revision ID, or panics if it's not found

(revid string)

Source from the content-addressed store, hash-verified

275
276// Returns the RevInfo for a revision ID, or panics if it's not found
277func (tree RevTree) getInfo(revid string) (*RevInfo, error) {
278 info, exists := tree[revid]
279 if !exists {
280 return nil, errors.New("getInfo can't find rev: " + revid)
281 }
282 return info, nil
283}
284
285// Returns the parent ID of a revid. The parent is "" if the revid is a root.
286// Panics if the revid is not in the map at all.

Calls

no outgoing calls