sakaiproject/nakamura — pull request #634 by zathomas (2012-03-05 17:50:38+00:00)
Title: KERN-2603 add includeSubree option when saving a version

When saving a version of content, you can now add `includeSubtree=true` and it will serialize and store all of that node's children along with its properties in the version.

The list of versions feed does not include this extra weight. To get the contents of the subtree, you request a particular version, and (provided it was saved with the `includeSubtree` option) you'll see the content and all its subnodes saved as the `metadata:subtree` property on the version.

To test this, use curl to save a version of a page:

curl --referer http://localhost:8080 -u zach:zach -FincludeSubtree=true http://localhost:8080/p/kNFWaY6Co/id9174950.save.json

Depending on the version number of what you just saved, you can get it back with the `version` selector:

curl --referer http://localhost:8080 -u zach:zach http://localhost:8080/p/kNFWaY6Co/id9174950.version.,1.3,.json