https://github.com/apache/couchdb/blob/master/src/couchdb/couch_doc.erl#L351
Yup, looking at he implementation its sorting tuples of the form, {true, 2,
'revid'}, which matches what you explained, looks like my pouch
implementation is also the same
https://github.com/daleharvey/pouchdb/blob/master/src/pouch.merge.js#L199
On 10 October 2013 20:12, Jens Alfke <[email protected]> wrote:
>
> On Oct 10, 2013, at 9:57 AM, Benoit Chesneau <[email protected]<mailto:
> [email protected]>> wrote:
>
> maybe that helps:
> https://github.com/refuge/rcouch/wiki/Replication-Algorithm
>
> No, thanks; the replicator actually doesn’t care about the
> winning-revision algorithm, because it doesn’t ever need to find a default
> revision or resolve conflicts. It just adds revisions to the tree.
>
> —Jens
>