sakaiproject/nakamura — pull request #737 by thecarlhall (2012-04-12 21:15:17+00:00)
Title: KERN-2753 Add option to :merge content when updating.

`:replace` works like "continue if exists" and so `:merge` is needed to control whether the update merges or replaces the existing content.
Use `replace(..)` in sparse when `:replace=true` && `:merge=false`.

The trick here is that `:replace` is implemented as "continue if exists" which is more like `force`. Since this semantic is already being used as such, I added a new parameter of `:merge` to allow the caller to control whether the update merges (`:merge=true`) or replaces (`:merge=false`) the existing content.

*Please wait for [the accompanying sparse PR](https://github.com/sakaiproject/sparsemapcontent/pull/54) to be merged before handling this one.*