'Return the name of the version control backend if found at given
location, e.g. vcs.get_backend_name(\'/path/to/vcs/checkout\')'

def get_backend_name(self, location):

    for vc_type in self._registry.values():
        if vc_type.controls_location(location):
            logger.debug('Determine    that    %s    uses    VCS:    %s', location, vc_type.name)
            return vc_type.name
    return None
