Get responsible info.

@param $revision
@return string
181892
private function getResponsibleInfo($revision)
    {
        $username = $this->getResponsibleUsername($revision);
        return '<span title="'. $username . ' (' . $revision->user_id  . ')' . '" class="responsibleUser" 
            model="' . $revision->revisionable_type . '">' . $username . '</span>';
    }
162248
public function getCurrentRevision()
    {
        if ($this->currentRevision === null) {
            $this->setCurrentRevision($this->revisionRepository->getCurrentByEnvironment($this));
        }
        return $this->currentRevision;
    }
535842
public function getLabel($adjustment): string
    {
        $allAdjustments = array_merge($this->rrrAdjustments, $this->chargeAdjustments);
        $adjustmentIdentifier = in_array($adjustment->getType(), $allAdjustments) ? $this->default . ' - ' . $adjustment->getLabel() : $this->default;

        return $adjustmentIdentifier;
    }
183265
public function revisionEntityAction()
    {
        $this->mapAllAuditedClasses();

        $page = (int)$this->getEvent()->getRouteMatch()->getParam('page');
        $revisionEntityId = (int) $this->getEvent()->getRouteMatch()->getParam('revisionEntityId');

        $revisionEntity = \SoliantEntityAudit\Module::getModuleOptions()->getEntityManager()
            ->getRepository('SoliantEntityAudit\\Entity\\RevisionEntity')->find($revisionEntityId);

        if (!$revisionEntity)
            return $this->plugin('redirect')->toRoute('audit');

        $repository = \SoliantEntityAudit\Module::getModuleOptions()->getEntityManager()
            ->getRepository('SoliantEntityAudit\\Entity\\RevisionEntity');

        return array(
            'page' => $page,
            'revisionEntity' => $revisionEntity,
            'auditService' => $this->getServiceLocator()->get('auditService'),
        );
    }
188162
public function getCurrentCommit()
    {
        /** @var $result CallResult */
        $result = $this->getGit()->{'rev-parse'}($this->getRepositoryPath(), array(
             '--verify',
            'HEAD'
        ));
        $result->assertSuccess(sprintf('Cannot rev-parse "%s"', $this->getRepositoryPath()));
        return $result->getStdOut();
    }
1103417
public function getActionsAttribute()
    {
        if (!$this->relationLoaded('actions')) {
            $this->load('actions');
        }

        return $this->getRelation('actions')->load('revisioned')->map(function ($revision) {
            if ($revisioned = $revision->revisioned) {
                return $revisioned->wrapRevision($revision);
            }

            return $revision;
        });
    }
320109
public function getCommitsSince($rev)
    {
        $log = $this->execute("hg log -r tip:{$rev} --config ui.verbose=false");
        $this->repository_type = 'hg';

        return $this->parseLog($log);
    }
1043360
public function getUser($revision = null)
	{
		// Without revision, use current info
		if (!isset($revision)) {
			return $this->info['user'];
		}

		// Obtain the properties of the revision
		if (($info = $this->getRevision($revision)) === null) {
			return null;
		}

		return $info['user'];
	}
1016627
public function getClientVersion()
    {
        $this->_connect();

        $version  = $this->_connection->server_version;
        $major    = (int)($version / 10000);
        $minor    = (int)($version % 10000 / 100);
        $revision = (int)($version % 100);

        return $major . '.' . $minor . '.' . $revision;
    }
995960
public function changelog($revision1, $revision2)
    {
        $this->fetch();

        return $this->execute('log', array(
                '--pretty=' => self::PRETTY_FORMAT,
                sprintf('%s^1..%s', $revision1, $revision2),
            )
        );
    }
1076105
public function getMediaType($revision = null)
	{
		// Without revision, use current info
		if (!isset($revision)) {
			return $this->info['mediatype'];
		}

		// Obtain the properties of the revision
		if (($info = $this->getRevision($revision)) === null) {
			return null;
		}

		return $info['mediatype'];
	}
612382
public function getFormUrl()
    {
        $this->_initOrder();
        $order = $this->_order;
        $payment = $order->getPayment();
        return $payment->getAdditionalInformation('issuerUrl');
    }
176296
private function _getObject($id, $revision = null)
    {
        if ($revision === null) {
            $select = Statement::get(
                'GET_CURRENT_OBJECT',
                [
                    '@collection' => $this->_name,
                    '@id' => $this->_connector->quote($id)
                ]
            );
            $record = $this->_connector->query($select)->fetch();
            if ($record) {
                return json_decode($record['obj']);
            }
        }
        return null;
    }
1159691
protected function getFilenameForRevision(string $revision): string
    {
        $ext = pathinfo($this->filename, PATHINFO_EXTENSION);

        return substr_replace($this->filename, '-'.$revision, -strlen($ext) - 1, 0);
    }
1172336
def _get_revision(self):
        
        assert self._revisions, "no migration revision exist"
        revision = self._rev or self._revisions[-1]
        # revision count must be less or equal since revisions are ordered
        assert revision in self._revisions, "invalid revision specified"
        return revision
1251800
protected function getLastEditedForVersion($version)
    {
        Deprecation::notice('5.0', 'Use getLastEditedAndStageForVersion instead');
        $result = $this->getLastEditedAndStageForVersion($version);
        if ($result) {
            return reset($result);
        }
        return null;
    }
811777
private function getTextFromArticle($title)
    {
        $title = \Title::newFromText($title);
        $revision = \Revision::newFromId($title->getLatestRevID());
        if (isset($revision)) {
            return \ContentHandler::getContentText($revision->getContent(\Revision::RAW));
        } else {
            return;
        }
    }