merge method

MergeContext merge(
  1. KdbxFile other
)

Merges the given file into this file. Both files must have the same origin (ie. same root group UUID). FIXME: THiS iS NOT YET FINISHED, DO NOT USE.

Implementation

MergeContext merge(KdbxFile other) {
  if (other.body.rootGroup.uuid != body.rootGroup.uuid) {
    throw KdbxUnsupportedException(
        'Root groups of source and dest file do not match.');
  }
  return body.merge(other.body);
}