Calculation of Revision Id

The revision hash is calculated at the client during a sync. Does the Sync gateway or Couchbase recalculate the revision hash prior to insertion into the db or is the passed in value used.

Thanks in advance,

The revID is never altered after a revision is created. The replication process just copies it over.