Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#558 Modified and updated gedmerge

open
nobody
5
2010-03-24
2010-03-24
No

Record merging is an area where personal goals and opinions influence greatly the outcome. This version is different from 0.7 in a number of places. First, it is update to work with current PGV versions (4.3.x). Second, it tries to import sources creating them if necessary or reusing already existing sources in the destination GEDCOM. Third, facts differing only in source references are merged together importing new source references in the process and trying not to duplicate them (process that is fragile and may end up in duplication if a source reference is edited in the destination GEDCOM and then a remerge is done). Fourth, it does not stop after processing merging a set of linked registers (this is useful if you want to merge a set of records from a FamilySearch or Vital Record Index search).

I have not used it lately beyond making sure it at least starts running on current versions. Make sure you backup all your data before running this.

Discussion

  • Updated version based on gedmerge 0.7

     
    Attachments
  • janpolsen
    janpolsen
    2010-03-24

    You write that it work with current PGV (4.3.x)... Shouldn't that be 4.2.x?

     
  • janpolsen
    janpolsen
    2010-03-24

    When trying to run it, I get the following error right after having chosen the master and import GED (running PGV 4.2.3):

    Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2050 ' in /var/www/genes.dk/public_html/includes/classes/class_pgv_db.php:850 Stack trace: #0 [internal function]: PDOStatement->fetch(2) #1 /var/www/genes.dk/public_html/includes/classes/class_pgv_db.php(850): call_user_func_array(Array, Array) #2 [internal function]: PGV_DBStatement->__call('fetch', Array) #3 /var/www/genes.dk/public_html/gedmerge.php(209): PGV_DBStatement->fetch(2) #4 /var/www/genes.dk/public_html/gedmerge.php(461) : regexp code(1): map_source('jole.ged', 'valdemar.ged', 'S19') #5 /var/www/genes.dk/public_html/gedmerge.php(461): preg_replace('/ SOUR\s+@(.*)@...', '' SOUR @'.map_s...', '0 @I9376@ INDI?...') #6 /var/www/genes.dk/public_html/gedmerge.php(521): extract_all('jole.ged', 'valdemar.ged') #7 {main} thrown in /var/www/genes.dk/public_html/includes/classes/class_pgv_db.php on line 850

     
  • Well, 4.3.x is not a complete lie, it's just that I run from SVN. I just did a more complete test doing real imports and merges and it worked for me there, so maybe it is that it does not work in the released 4.2.x.

    Let me check this, I don't quite understand the error message. What database kind were you using?

     
  • janpolsen
    janpolsen
    2010-03-24

    I am using the "mysqli" driver and running on mySQL version 5.0.32-Debian_7etch11-log

     
  • janpolsen
    janpolsen
    2010-03-25

    I hope not, because it doesn't look like that bug is going to be fixed.
    Yet again there are problems with PDO :(.

     
  • But that bug can be coded around.