mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-05 14:07:21 +02:00
TDB2 - id <--> uuid mapping
- Migrated TDB mapping over to TDB2 mapping, which occurs at the TF2 level. This should (soon) restore task dependencies.
This commit is contained in:
parent
30034f057b
commit
bfad448f82
3 changed files with 45 additions and 3 deletions
|
@ -794,7 +794,7 @@ void Task::addDependency (int id)
|
|||
throw std::string (STRING_TASK_DEPEND_ITSELF);
|
||||
|
||||
// Check for extant dependency.
|
||||
std::string uuid = context.tdb.uuid (id);
|
||||
std::string uuid = context.tdb2.pending.uuid (id);
|
||||
if (uuid == "")
|
||||
throw format (STRING_TASK_DEPEND_MISSING, id);
|
||||
|
||||
|
@ -839,7 +839,7 @@ void Task::removeDependency (const std::string& uuid)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Task::removeDependency (int id)
|
||||
{
|
||||
std::string uuid = context.tdb.uuid (id);
|
||||
std::string uuid = context.tdb2.pending.uuid (id);
|
||||
if (uuid != "")
|
||||
removeDependency (uuid);
|
||||
else
|
||||
|
@ -858,7 +858,7 @@ void Task::getDependencies (std::vector <int>& all) const
|
|||
|
||||
std::vector <std::string>::iterator i;
|
||||
for (i = deps.begin (); i != deps.end (); ++i)
|
||||
all.push_back (context.tdb.id (*i));
|
||||
all.push_back (context.tdb2.pending.id (*i));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue