def filter_by_latest_metadata_changeset_revision_that_has_invalid_tools(trans, repository):
 repository_metadata = get_latest_repository_metadata_if_it_includes_invalid_tools(trans, repository)
 if (repository_metadata is not None):
  return repository_metadata.changeset_revision
 return None

def filter_by_latest_metadata_changeset_revision_that_has_invalid_tools ( trans , repository ) : repository_metadata = get_latest_repository_metadata_if_it_includes_invalid_tools ( trans , repository ) if ( repository_metadata is not None ) : return repository_metadata . changeset_revision return None
inspect the latest changeset revision with associated metadata for the received repository to see if it has invalid tools .