merge_objects
Combine duplicate Gramps records by absorbing one object into another, repointing references and unioning subordinate lists in one reversible transaction; dry-run first.
Instructions
Merge two objects that are the same thing. Dry-run by default.
This uses Gramps' own server-side merge: every reference to drop is
re-pointed at keep and the subordinate lists are unioned, in one
transaction. Do NOT do this by hand: a manual merge that misses one of the
lists the dropped object carries loses what was on it.
Before merging, be sure they really are one thing. Two records OF the same event are two documents: an index entry and the register page it indexes stay separate, and merging them would turn two independent citations into one, silently weakening every fact that rested on both. Conversely, the same census page entered once per household member IS one document, and leaving the duplicates makes single-sourced facts look corroborated.
Reversible: the merge is one transaction, so list_transactions + undo_transaction can back it out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drop | Yes | Handle or gramps_id of the object absorbed into it. | |
| keep | Yes | Handle or gramps_id of the object that SURVIVES. | |
| dry_run | No | True (default) reports what would move without changing anything. Set False to apply. | |
| object_type | Yes | person, family, event, place, source, citation, repository, media, or note. |