protected function proceedCurrentPatchSet(array $changeSet, $currentPatchSetId)
    {
        $currentPatchSet = $changeSet['currentPatchSet'];
        $patchSetRow = $this->getGerritPatchsetByIdentifier(
            $changeSet['id'],
            $currentPatchSet['number'],
            $currentPatchSet['revision'],
            $currentPatchSet['createdOn']
        );

        // If the current currentPatchSet in database not equal the patchset from Gerrit, update it
        if ($patchSetRow['id'] != $currentPatchSetId) {
            $updateData = array('current_patchset' => $patchSetRow['id']);
            $this->getDatabase()->updateRecord(Database::TABLE_CHANGESET, $updateData, $changeSet['id']);
        }
    }
protected function proceedCurrentPatchSet(array $changeSet, $currentPatchSetId)
    {
        $currentPatchSet = $changeSet['currentPatchSet'];
        $patchSetRow = $this->getGerritPatchsetByIdentifier(
            $changeSet['id'],
            $currentPatchSet['number'],
            $currentPatchSet['revision'],
            $currentPatchSet['createdOn']
        );

        // If the current currentPatchSet in database not equal the patchset from Gerrit, update it
        if ($patchSetRow['id'] != $currentPatchSetId) {
            $updateData = array('current_patchset' => $patchSetRow['id']);
            $this->getDatabase()->updateRecord(Database::TABLE_CHANGESET, $updateData, $changeSet['id']);
        }
    }
protected function proceedCurrentPatchSet ( array $ changeSet , $ currentPatchSetId ) { $ currentPatchSet = $ changeSet [ 'currentPatchSet' ] ; $ patchSetRow = $ this -> getGerritPatchsetByIdentifier ( $ changeSet [ 'id' ] , $ currentPatchSet [ 'number' ] , $ currentPatchSet [ 'revision' ] , $ currentPatchSet [ 'createdOn' ] ) ; // If the current currentPatchSet in database not equal the patchset from Gerrit, update it if ( $ patchSetRow [ 'id' ] != $ currentPatchSetId ) { $ updateData = array ( 'current_patchset' => $ patchSetRow [ 'id' ] ) ; $ this -> getDatabase ( ) -> updateRecord ( Database :: TABLE_CHANGESET , $ updateData , $ changeSet [ 'id' ] ) ; } }
Updates the current patch set for this changeset if necessary.

@param array $changeSet The changeSet from Gerrit
@param int $currentPatchSetId The current patchset id from our database
@return void
Updates the current patch set for this changeset if necessary .