summaryrefslogtreecommitdiff
path: root/zuul/source/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'zuul/source/__init__.py')
-rw-r--r--zuul/source/__init__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/zuul/source/__init__.py b/zuul/source/__init__.py
index faf97b48b..dd11aa9b6 100644
--- a/zuul/source/__init__.py
+++ b/zuul/source/__init__.py
@@ -15,6 +15,8 @@
import abc
import time
+from zuul import model
+
class BaseSource(object, metaclass=abc.ABCMeta):
"""Base class for sources.
@@ -183,6 +185,20 @@ class BaseSource(object, metaclass=abc.ABCMeta):
"""
+ def getProjectMergeModes(self, project, tenant, min_ltime=-1):
+ """Get supported merge modes for a project
+
+ This method is called very frequently, and should generally
+ return quickly. The connection is expected to cache merge
+ modes for all projects queried.
+
+ The default implementation indicates that all merge modes are
+ supported.
+
+ """
+
+ return model.ALL_MERGE_MODES
+
@abc.abstractmethod
def getProjectBranchCacheLtime(self):
"""Return the current ltime of the project branch cache."""