civicrm/civicrm-core — pull request #1399 by ravishnair (2013-08-12 13:19:44+00:00)
Title: CRM-12845 CRM_Utils_Migrate - Handle CustomGroup subtypes

1. Based on the component to which the custom group extends, will have its subType optionValue(value of name_a_b column in case of relationship type) "name" as its value instead of "value" during export since name's are unique and will be the same.
2. During the processing of import, the "name" will be taken from extends_entity_column_value and its corresponding value would be found. This value will be passed as the entry for "extends_entity_column_value" column of civicrm_custom_group. This will help in avoiding conflicts.
3. Also, handled Contact subtypes for customGroup xml import and export.