Meta Data Services Programming

Resolving Merge Conflicts for Collections

For each collection, MergeVersion uses flags and rules to resolve merge conflicts. CollectionDefFlags that you set for a collection can determine how that collection is merged.

Setting the COLLECTION_MERGEWHOLE Flag

For each origin collection type whose COLLECTION_MERGEWHOLE flag is set, MergeVersion uses this rule:

Not Setting the COLLECTION_MERGEWHOLE Flag

For each origin collection type whose COLLECTION_MERGEWHOLE flag is not set, MergeVersion combines the items in the two collections as follows:

Note  The resulting collection can exclude some items found in the basis object version's collection. For example, if the primary version's collection excludes the item, the resulting collection will exclude the item. Similarly, if the primary version's collection includes an item that is identical to an item in the basis version's collection, but the secondary object version excludes the item, the resulting collection will exclude the item.

For more information about merge behavior, see Examples of Merging Versions.

See Also

CollectionDefFlags Enumeration

IRepositoryObjectVersion::MergeVersion

Merge Overview

Merging Object Versions

Resolving Merge Conflicts for Properties

Versioning Objects