def getRepositoryCommand(directory):
    try:
        SVNCommand.ensureIsWorkingDirectory(directory)
        return SVNCommand
    except (NotWorkingDirectory, OSError):
        # It's not SVN, but that's okay, eat the error
        pass

    try:
        GitCommand.ensureIsWorkingDirectory(directory)
        return GitCommand
    except (NotWorkingDirectory, OSError):
        # It's not Git, but that's okay, eat the error
        pass

    raise NotWorkingDirectory("No supported VCS can be found in %s" %
                              (directory.path,))
Schedules an action to be executed after duetime.
dataset/ETHPy150Open twisted/twisted/twisted/python/_release.py/getRepositoryCommand--crossover with--dataset/ETHPy150Open ReactiveX/RxPY/rx/concurrency/eventloopscheduler.py/EventLoopScheduler.schedule_relative