parameters: (cls, location)
return_statement: return None
docstring: Return the "root" (top-level) directory controlled by the vcs,
  
          or `None` if the directory is not in any.
  
  
  
          It is meant to be overridden to implement smarter detection
  
          mechanisms for specific vcs.
  
  
  
          This can do more than is_repository_directory() alone. For
  
          example, the Git override checks that Git is actually available.
function: def get_repository_root(cls, location):
  
          # type: (str) -> Optional[str]
  
          """
  
          Return the "root" (top-level) directory controlled by the vcs,
  
          or `None` if the directory is not in any.
  
  
  
          It is meant to be overridden to implement smarter detection
  
          mechanisms for specific vcs.
  
  
  
          This can do more than is_repository_directory() alone. For
  
          example, the Git override checks that Git is actually available.
  
          """
  
          if cls.is_repository_directory(location):
  
              return location
  
          return None
function_tokens: def get_repository_root ( cls , location ) : # type: (str) -> Optional[str] if cls . is_repository_directory ( location ) : return location return None