parameters: (test_key)
return_statement: return None
docstring: Gets the revision number of the Row with the highest ID for a test.
docstring_summary: Gets the revision number of the Row with the highest ID for a test.
docstring_tokens: Gets the revision number of the Row with the highest ID for a test .
function: def _HighestRevision(test_key):
    """Gets the revision number of the Row with the highest ID for a test."""
    query = graph_data.Row.query(
        graph_data.Row.parent_test == utils.OldStyleTestKey(test_key))
    query = query.order(-graph_data.Row.revision)
    highest_row_key = query.get(keys_only=True)
    if highest_row_key:
      return highest_row_key.id()
    return None
function_tokens: def _HighestRevision ( test_key ) : query = graph_data . Row . query ( graph_data . Row . parent_test == utils . OldStyleTestKey ( test_key ) ) query = query . order ( - graph_data . Row . revision ) highest_row_key = query . get ( keys_only = True ) if highest_row_key : return highest_row_key . id ( ) return None