parameters: (revision)
return_statement: return _IsGitHash(revision) or re.match(r'^[0-9]{5,7}$', str(revision))
docstring: Checks whether a revision looks like a valid revision for bisect.
docstring_summary: Checks whether a revision looks like a valid revision for bisect.
docstring_tokens: Checks whether a revision looks like a valid revision for bisect .
function: def IsValidRevisionForBisect(revision):
    """Checks whether a revision looks like a valid revision for bisect."""
    return _IsGitHash(revision) or re.match(r'^[0-9]{5,7}$', str(revision))
function_tokens: def IsValidRevisionForBisect ( revision ) : return _IsGitHash ( revision ) or re . match ( r'^[0-9]{5,7}$' , str ( revision ) )