In my android app i have setup pull replication with sync_gateway.
Due to the specific app’s logic, whenever a conflict is detected, i need to remove any other info and keep just the ones replicated from the server version.
I’m able to define which conflicting version comes from the replication and which one comes from a local modification and i want to keep the server revision. If i create tombstones and new revision with the server data, i will have continuos conflicts because id of local revision will be always different from the one on the server.
I need to have a local object that is an exact copy of the remote one so that it will never produce conflicts until real ones will be generated by local modifications.
Is it possible to purge revisions? Or is it possibile to create an object that contains just the server revision? I need a behaviour similar to an override.