mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
45666ebfc5
commit
63eb22fc7e
7 changed files with 740 additions and 1118 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue