TDB2 Merge

- Migrated TDB::merge to TDB2::merge.
- Removed obsoleted code from TDB.
- Modified unit tests for merge to use export instead of export.csv.
This commit is contained in:
Paul Beckingham 2011-09-01 23:48:35 -04:00
parent 45666ebfc5
commit 63eb22fc7e
7 changed files with 740 additions and 1118 deletions

View file

@ -59,9 +59,9 @@ int CmdAdd::execute (std::string& output)
// TODO This should be a call in to feedback.cpp.
if (context.verbose ("new-id"))
output = format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
/*
context.footnote (onProjectChange (task));
*/
// context.footnote (onProjectChange (task));
context.tdb2.commit ();
return rc;
}

View file

@ -82,9 +82,7 @@ int CmdMerge::execute (std::string& output)
else
file = uri._path;
context.tdb.lock (context.config.getBoolean ("locking"));
context.tdb.merge (file);
context.tdb.unlock ();
context.tdb2.merge (file);
output += "Merge complete.\n";