def filter_workers(processor, workers):
    if processor == 'latest':
        by_version = []
        for wrk in workers:
            for eng in wrk.engines.all():
                by_version.append((eng.version, wrk))
        by_version.sort()  # alphanumeric sort by version
        return [wrk for (ver, wrk) in by_version[-1:]]  # last worker
    else:
        raise BrowserSpecError('Unknown browser spec :%s' % processor)
Return the outgoing changesets between us and a remote.
dataset/ETHPy150Open kumar303/jstestnet/jstestnet/system/views.py/filter_workers--crossover with--dataset/ETHPy150Open reviewboard/rbtools/rbtools/clients/mercurial.py/MercurialClient._get_outgoing_changesets