TW-1653: info report regression; shouldn't be context sensitive

- Thanks to David Patrick, Tomas Babej.
This commit is contained in:
Paul Beckingham 2015-08-12 21:39:04 -04:00
parent 995de68c90
commit ffcc574c85
4 changed files with 83 additions and 5 deletions

View file

@ -587,11 +587,11 @@ void CLI2::addContextFilter ()
// Detect if UUID or ID is set, and bail out
for (auto& a : _args)
{
if ((a._lextype == Lexer::Type::uuid ||
a._lextype == Lexer::Type::set) &&
a.hasTag ("FILTER"))
if (a._lextype == Lexer::Type::uuid ||
a._lextype == Lexer::Type::number ||
a._lextype == Lexer::Type::set)
{
context.debug (format ("UUID/ID lexeme found '{1}', not applying context.", a.attribute ("raw")));
context.debug (format ("UUID/ID argument found '{1}', not applying context.", a.attribute ("raw")));
return;
}
}

View file

@ -54,7 +54,7 @@ CmdInfo::CmdInfo ()
// Once the test suite is completely modified, this can be corrected.
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_uses_context = false;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;