anchor.diff:      false ->
           HistEntries =[
               {
  -                [{start_time, list_to_binary(StartTime)},
  -                {end_time, list_to_binary(httpd_util:rfc1123_date())},
  -                {start_last_seq, SeqNum},
  -                {end_last_seq, NewSeqNum} | Stats]}
  +                [{<<"start_time">>, list_to_binary(StartTime)},
  +                {<<"end_time">>, list_to_binary(httpd_util:rfc1123_date())},
  +                {<<"start_last_seq">>, SeqNum},
  +                {<<"end_last_seq">>, NewSeqNum} | Stats]}
               | proplists:get_value("history", OldRepHistoryProps, [])],
           % something changed, record results
           NewRepHistory =
               {
  -                [{session_id, couch_util:new_uuid()},
  -                {source_last_seq, NewSeqNum},
  -                {history, lists:sublist(HistEntries, 50)}]},
  +                [{<<"session_id">>, couch_util:new_uuid()},
  +                {<<"source_last_seq">>, NewSeqNum},
  +                {<<"history">>, lists:sublist(HistEntries, 50)}]},
   
           {ok, _} = update_doc(DbSrc, RepRecSrc#doc{body=NewRepHistory}, []),
           {ok, _} = update_doc(DbTgt, RepRecTgt#doc{body=NewRepHistory}, []),
  
positive.code:         ok = save_docs(DbTarget, Docs, []),
          save_docs_loop(DbTarget, DocsWritten + length(Docs));
      {Src, shutdown} ->
          Src ! {done, self(), [{docs_written, DocsWritten}]}
      end.
  
  
  
negative.code:         SaveDocsPid ! {self(), docs, Docs},
          open_doc_revs_loop(DbSource, SaveDocsPid, DocsRead + length(Docs));
      {Src, shutdown} ->
          Src ! {done, self(), [{<<"docs_read">>, DocsRead}]}
      end.
  
  
  