Modify inheritence rules for content sources in playbook
The inheritance rules for content sources in the playbook should be changed so it only considers the key, not the value. If an inheritable key is specified on a content source (e.g., branches, tags, etc), the value of that key should replace the default value. The value itself should not impact the override behavior. A falsy value should work in the same way as a truthy value.
This is not a breaking change since using a falsy value had no effect anyway. Now, the following will work as a way to unset the branches.
content: branches: master sources: - url: . branches: ~ tags: v1.0
As it works now, you'd have to specify an empty array for branches (i.e.,
) since an empty array is not falsy.
This change is important as we will need this logic to fully support the customizable edit URL (#292 (closed)).