anchor.diff:                  || #rev_info{rev=R} <- Revs]
       end,
   
  -    {[{<<"seq">>, Seq}, {<<"id">>, Id}, {<<"changes">>, Changes}] ++
  +    {Del, {[{<<"seq">>, Seq}, {<<"id">>, Id}, {<<"changes">>, Changes}] ++
        deleted_item(Del) ++ case InDoc of
               true ->
                   Opts = case Conflicts of
  
positive.code:                 end;
              false ->
                  []
          end}.
  
  parse_changes_query(Req, Db) ->
      ChangesArgs = lists:foldl(fun({Key, Value}, Args) ->
  
negative.code:     case couch_db:get_doc_info(Db, DocId) of
          {ok, DocInfo} ->
              %% get change row
              {Deleted, ChangeRow} = view_change_row(Db, DocInfo, Args),
  
              case Removed of
                  true when Deleted /= true ->
                      %% the key has been removed from the view but the
                      %% document hasn't been deleted so ignore it.
                      {ok, Acc};
                  _ ->
                      %% emit change row
                      Callback({change, ChangeRow, Prepend}, ResponseType),
  
                      %% if we achieved the limit, stop here, else continue.
                      NewLimit = OldLimit + 1,
                      if Limit > NewLimit ->
                              {ok, {<<",\n">>, NewLimit, Db, Callback, Args}};
                          true ->
                              {stop, {<<"">>, NewLimit, Db, Callback, Args}}
                      end
              end;
          {error, not_found} ->
              %% doc not found, continue
  