perceval/backends/core/gerrit.py
def next_retrieve_group_item(self, last_item=None, entry=None):
        """Return the item to start from in next reviews group."""

        next_item = None

        gerrit_version = self.version

        if gerrit_version[0] == 2 and gerrit_version[1] > 9:
            if last_item is None:
                next_item = 0
            else:
                next_item = last_item
        elif gerrit_version[0] == 2 and gerrit_version[1] == 9:
            # https://groups.google.com/forum/#!topic/repo-discuss/yQgRR5hlS3E
            cause = "Gerrit 2.9.0 does not support pagination"
            raise BackendError(cause=cause)
        else:
            if entry is not None:
                next_item = entry['sortKey']

        return next_item
def next_retrieve_group_item(self, last_item=None, entry=None):
        next_item = None

        gerrit_version = self.version

        if gerrit_version[0] == 2 and gerrit_version[1] > 9:
            if last_item is None:
                next_item = 0
            else:
                next_item = last_item
        elif gerrit_version[0] == 2 and gerrit_version[1] == 9:
            # https://groups.google.com/forum/#!topic/repo-discuss/yQgRR5hlS3E
            cause = "Gerrit 2.9.0 does not support pagination"
            raise BackendError(cause=cause)
        else:
            if entry is not None:
                next_item = entry['sortKey']

        return next_item
def next_retrieve_group_item ( self , last_item = None , entry = None ) : next_item = None gerrit_version = self . version if gerrit_version [ 0 ] == 2 and gerrit_version [ 1 ] > 9 : if last_item is None : next_item = 0 else : next_item = last_item elif gerrit_version [ 0 ] == 2 and gerrit_version [ 1 ] == 9 : # https://groups.google.com/forum/#!topic/repo-discuss/yQgRR5hlS3E cause = "Gerrit 2.9.0 does not support pagination" raise BackendError ( cause = cause ) else : if entry is not None : next_item = entry [ 'sortKey' ] return next_item
Return the item to start from in next reviews group.
Return the item to start from in next reviews group .