(self, location)
return None
Return a VersionControl object if a repository of that type is found
        at the given directory.
Return a VersionControl object if a repository of that type is found
        at the given directory.
Return a VersionControl object if a repository of that type is found at the given directory .
def get_backend_for_dir(self, location):
        # type: (str) -> Optional[VersionControl]
        """
        Return a VersionControl object if a repository of that type is found
        at the given directory.
        """
        for vcs_backend in self._registry.values():
            if vcs_backend.controls_location(location):
                logger.debug('Determine that %s uses VCS: %s',
                             location, vcs_backend.name)
                return vcs_backend
        return None
def get_backend_for_dir ( self , location ) : # type: (str) -> Optional[VersionControl] for vcs_backend in self . _registry . values ( ) : if vcs_backend . controls_location ( location ) : logger . debug ( 'Determine that %s uses VCS: %s' , location , vcs_backend . name ) return vcs_backend return None