mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Dependencies
- Added check for circular dependencies.
This commit is contained in:
parent
58d678f927
commit
0e2c090dc5
5 changed files with 78 additions and 30 deletions
|
@ -493,6 +493,9 @@ void Task::addDependency (int id)
|
|||
}
|
||||
else
|
||||
set ("depends", uuid);
|
||||
|
||||
if (dependencyIsCircular (*this))
|
||||
throw std::string ("Circular dependency detected and disallowed.");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue