Virtual Tag: Undocumented, experimental support for 'LATEST'

This commit is contained in:
Paul Beckingham
2015-08-31 12:59:44 -04:00
parent 86dc14823e
commit ada6c24789
4 changed files with 12 additions and 2 deletions

View File

@@ -1196,8 +1196,9 @@ bool Task::hasTag (const std::string& tag) const
if (tag == "PENDING") return get ("status") == "pending";
if (tag == "COMPLETED") return get ("status") == "completed";
if (tag == "DELETED") return get ("status") == "deleted";
if (tag == "UDA") return is_udaPresent();
if (tag == "ORPHAN") return is_orphanPresent();
if (tag == "UDA") return is_udaPresent ();
if (tag == "ORPHAN") return is_orphanPresent ();
if (tag == "LATEST") return id == context.tdb2.latest_id ();
// Concrete tags.
std::vector <std::string> tags;