HSDK Class Descriptions › CaCrossProjectMerge › LPCTSTR GetPlacement(void)
LPCTSTR GetPlacement(void)
Gets Rule for how the merged version appears in the destination state.
Note: The following are the allowable values for the Placement. They are defined in an include file built into the project.
- MERGE_OPTION_BRANCH_ONLY-Creates a merge version on the target branch. This allows changes to be copied from the source project to the target project even if one or more target items are reserved for updates in the main trunk. With this option, a branch will be created to store the changes.
- MERGE_OPTION_TRUNK_ONLY-Creates a merge version on the target trunk.
- MERGE_OPTION_TRUNK_OR_BRANCH-Creates a merge version on the target trunk or branch. This allows changes to be copied from the source project to the target project even if one or more target items are reserved for update in the main trunk. If items are reserved for update on the trunk, a branch will be created to store the changes. If items are not reserved for update on the trunk, the items are simply copied to the trunk.
- Owning Class
-
CaCrossPackageMerge
- Arguments
-
None
- Return Value
-
LPCTSTR szRule-the rule value
Example
CaCrossProjectMerge& xprojmrg = rContext.GetCrossProjectMerge(); LPCTSTR szPlacement = xprojmrg.GetPlacement();
More information:
- HSDK Programming Fundamentals
- SetPlacement
|
Copyright © 2013 CA.
All rights reserved.
|
|