anchor.diff:          % we'll embed this at a higher level b/c the doc may be non-local
           Doc = undefined;
       IncludeDocs ->
  -        case couch_db:open_doc(Db, Id, []) of
  +        IdOrInfo = if DocInfo =/= nil -> DocInfo; true -> Id end,
  +        case couch_db:open_doc(Db, IdOrInfo, []) of
           {not_found, deleted} ->
               Doc = null;
           {not_found, missing} ->
  
positive.code:     % the normal case
      #view_acc{
          db = Db,
          limit = Limit,
          include_docs = IncludeDocs
      } = Acc,
  
negative.code: view_fold(#full_doc_info{} = FullDocInfo, OffsetReds, Acc) ->
      % matches for _all_docs and translates #full_doc_info{} -> KV pair
      case couch_doc:to_doc_info(FullDocInfo) of
      #doc_info{id=Id, revs=[#rev_info{deleted=false, rev=Rev}|_]} = DI ->
          Value = {[{rev,couch_doc:rev_to_str(Rev)}]},
          view_fold({{Id,Id}, Value}, OffsetReds, Acc#view_acc{doc_info=DI});
      #doc_info{revs=[#rev_info{deleted=true}|_]} ->
          {ok, Acc}
      end;
  