Dependencies

- Added check for circular dependencies.
This commit is contained in:
Paul Beckingham 2010-08-26 22:52:57 -04:00
parent 58d678f927
commit 0e2c090dc5
5 changed files with 78 additions and 30 deletions

View file

@ -493,6 +493,9 @@ void Task::addDependency (int id)
}
else
set ("depends", uuid);
if (dependencyIsCircular (*this))
throw std::string ("Circular dependency detected and disallowed.");
}
////////////////////////////////////////////////////////////////////////////////