Add source interface for getting the cache ltime

In order to save a list of ltimes for each connection we need a source
interface to get the current ltime of a project branch cache.

Change-Id: If01db0698024beeed813d2c9910651c757377865
This commit is contained in:
Simon Westphahl
2021-11-04 12:22:01 +01:00
parent 9fca9da206
commit 0b048295e4
6 changed files with 19 additions and 0 deletions

View File

@@ -125,6 +125,10 @@ class BaseSource(object, metaclass=abc.ABCMeta):
"""
@abc.abstractmethod
def getProjectBranchCacheLtime(self):
"""Return the current ltime of the project branch cache."""
@abc.abstractmethod
def getRequireFilters(self, config):
"""Return a list of ChangeFilters for the scheduler to match against.