Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistRepositoryAPI.php
Show First 20 Lines • Show All 569 Lines • ▼ Show 20 Lines | if (!$this->supportsCommitRanges()) { | ||||
throw new ArcanistCapabilityNotSupportedException($this); | throw new ArcanistCapabilityNotSupportedException($this); | ||||
} | } | ||||
$this->symbolicBaseCommit = $symbolic_commit; | $this->symbolicBaseCommit = $symbolic_commit; | ||||
$this->reloadCommitRange(); | $this->reloadCommitRange(); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setHeadCommit($symbolic_commit) { | |||||
throw new ArcanistCapabilityNotSupportedException($this); | |||||
} | |||||
final public function getBaseCommit() { | final public function getBaseCommit() { | ||||
if (!$this->supportsCommitRanges()) { | if (!$this->supportsCommitRanges()) { | ||||
throw new ArcanistCapabilityNotSupportedException($this); | throw new ArcanistCapabilityNotSupportedException($this); | ||||
} | } | ||||
if ($this->resolvedBaseCommit === null) { | if ($this->resolvedBaseCommit === null) { | ||||
$commit = $this->buildBaseCommit($this->symbolicBaseCommit); | $commit = $this->buildBaseCommit($this->symbolicBaseCommit); | ||||
$this->resolvedBaseCommit = $commit; | $this->resolvedBaseCommit = $commit; | ||||
} | } | ||||
return $this->resolvedBaseCommit; | return $this->resolvedBaseCommit; | ||||
} | } | ||||
public function getHeadCommit() { | |||||
throw new ArcanistCapabilityNotSupportedException($this); | |||||
} | |||||
final public function reloadCommitRange() { | final public function reloadCommitRange() { | ||||
$this->resolvedBaseCommit = null; | $this->resolvedBaseCommit = null; | ||||
$this->baseCommitExplanation = null; | $this->baseCommitExplanation = null; | ||||
$this->didReloadCommitRange(); | $this->didReloadCommitRange(); | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |