There are 2 issues with supporting create new revision on update:

  1. As mentioned in #750498: defaults for created nodes not correct node's are not created with the defaults defined in the content type. Therefore if create new revision is enabled in the content type new revisions are not created.
  2. Once that problem is solved it is very easy for a new revision of node's to be created without any changes if full sync is enabled. Even without full sync enabled the cron runs more often than every 12 hours new revisions will be created even if there are not any changes as the CMIS query looks for anything updated in the last 12 hours.

The patch I will attach addresses both of the issues:

  1. It loads the Drupal configured content type defaults and merges them into new or existing nodes on create/update
  2. It keeps track of the last CMIS revision label for each node and only updates the node if the CMIS revision label is changed.

Comments

darrenphillips’s picture

Here's the patch.

darrenphillips’s picture

That patch has some bugs in the .install. Here is a corrected version.

cfuller12’s picture

Assigned: Unassigned » cfuller12
IanNorton’s picture

Assigned: cfuller12 » IanNorton

For review against 7.x branch