anchor.diff:              couch_doc:validate_docid(DocId),
               #doc{id=DocId};
           Rev ->
  -            case ?COUCH:open_revs(Db, DocId, [Rev], []) of
  +            case fabric:open_revs(Db, DocId, [Rev], []) of
               {ok, [{ok, Doc0}]}  -> Doc0;
               {ok, [Error]}       -> throw(Error)
               end
  
positive.code:     end,
      Form = chttpd:parse_form(Req),
      Rev = couch_doc:parse_rev(list_to_binary(couch_util:get_value("_rev", Form))),
      {ok, [{ok, Doc}]} = ?COUCH:open_revs(Db, DocId, [Rev], []),
  
      UpdatedAtts = [
          #att{name=validate_attachment_name(Name),
  
negative.code:                 send_json(Req, 200, [], couch_doc:to_json_obj(Doc, Options))
              end;
          _ ->
              {ok, Results} = fabric:open_revs(Db, DocId, Revs, Options),
              {ok, Resp} = start_json_response(Req, 200),
              send_chunk(Resp, "["),
              % We loop through the docs. The first time through the separator
  