Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/DiffusionRenameHistoryQuery.php
Show All 24 Lines | public function setOldCommit($old_commit) { | ||||
$this->oldCommit = $old_commit; | $this->oldCommit = $old_commit; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getOldCommit() { | public function getOldCommit() { | ||||
return $this->oldCommit; | return $this->oldCommit; | ||||
} | } | ||||
final public function loadOldFilename() { | public function loadOldFilename() { | ||||
$drequest = $this->request; | $drequest = $this->request; | ||||
$repository_id = $drequest->getRepository()->getID(); | $repository_id = $drequest->getRepository()->getID(); | ||||
$conn_r = id(new PhabricatorRepository())->establishConnection('r'); | $conn_r = id(new PhabricatorRepository())->establishConnection('r'); | ||||
$commit_id = $this->loadCommitId($this->oldCommit); | $commit_id = $this->loadCommitId($this->oldCommit); | ||||
$old_commit_sequence = $this->loadCommitSequence($commit_id); | $old_commit_sequence = $this->loadCommitSequence($commit_id); | ||||
$path = '/'.$drequest->getPath(); | $path = '/'.$drequest->getPath(); | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |