Added legacy mode support for automatic SVN schedulers.

git-svn-id: https://llvm.org/svn/llvm-project/zorg/trunk@374594 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/buildbot/osuosl/master/config/schedulers.py b/buildbot/osuosl/master/config/schedulers.py
index 25abaa9..07b9b2e 100644
--- a/buildbot/osuosl/master/config/schedulers.py
+++ b/buildbot/osuosl/master/config/schedulers.py
@@ -26,8 +26,10 @@
     for builder in builders:
         # Only for the builders created with LLVMBuildFactory or similar.
         if getattr(builder['factory'], 'depends_on_projects', None):
-            # And only if this builder does not yet have an assigned scheduler.
-            if builder['name'] not in builders_with_schedulers:
+            # And only if this builder is in the legacy mode and
+            # does not yet have an assigned scheduler.
+            if getattr(builder['factory'], 'is_legacy_mode', True) and \
+               builder['name'] not in builders_with_schedulers:
                 # This builder is a candidate for an automatic scheduler.
                 builders_with_automatic_schedulers.append(builder)