anchor.diff:      #db{
           fulldocinfo_by_id_btree = DocInfoByIdBTree,
           docinfo_by_seq_btree = DocInfoBySeqBTree,
  -        update_seq = LastSeq
  +        update_seq = LastSeq,
  +        revs_limit = RevsLimit
           } = Db,
       Ids = [Id || [{_Client, #doc{id=Id}}|_] <- DocsList],
       % lookup up the old documents, if they exist.
  
positive.code:         end,
          Ids, OldDocLookups),
      % Merge the new docs into the revision trees.
      {ok, NewDocInfos0, RemoveSeqs, NewSeq} = merge_rev_trees(
              MergeConflicts, DocsList, OldDocInfos, [], [], LastSeq),
  
      NewFullDocInfos = stem_full_doc_infos(Db, NewDocInfos0),
  
      % All documents are now ready to write.
  
  
negative.code:             0 -> AccRemoveSeqs;
              _ -> [OldSeq | AccRemoveSeqs]
          end,
          merge_rev_trees(Limit, MergeConflicts, RestDocsList, RestOldInfo,
              [NewInfo|AccNewInfos], RemoveSeqs, AccSeq+1)
      end.
  
  
  