Virtual Tags

- The 'info' command now shows virtual tags.
This commit is contained in:
Paul Beckingham
2015-02-26 21:09:50 -05:00
parent 3b9d88a87b
commit 58e62711f3
12 changed files with 45 additions and 0 deletions

View File

@@ -1105,6 +1105,7 @@ int Task::getTagCount () const
bool Task::hasTag (const std::string& tag) const
{
// Synthetic tags - dynamically generated, but do not occupy storage space.
// Note: This list must match that in CmdInfo::execute.
if (tag == "BLOCKED") return is_blocked;
if (tag == "UNBLOCKED") return !is_blocked;
if (tag == "BLOCKING") return is_blocking;