Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistGitAPI.php
| Show First 20 Lines • Show All 1,047 Lines • ▼ Show 20 Lines | foreach ($branches as $branch) { | ||||
| ->setRefName($branch['ref']) | ->setRefName($branch['ref']) | ||||
| ->setIsCurrentBranch($branch['current']) | ->setIsCurrentBranch($branch['current']) | ||||
| ->attachCommitRef($commit_ref); | ->attachCommitRef($commit_ref); | ||||
| } | } | ||||
| return $refs; | return $refs; | ||||
| } | } | ||||
| public function getWorkingCopyRevision() { | public function getBaseCommitRef() { | ||||
| list($stdout) = $this->execxLocal('rev-parse HEAD'); | $base_commit = $this->getSourceControlBaseRevision(); | ||||
| return rtrim($stdout, "\n"); | $base_message = $this->getCommitMessage($base_commit); | ||||
| // TODO: We should also pull the tree hash. | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
| return $this->newCommitRef() | |||||
| ->setCommitHash($base_commit) | |||||
| ->attachMessage($base_message); | |||||
| } | } | ||||
| public function getUnderlyingWorkingCopyRevision() { | public function getWorkingCopyRevision() { | ||||
| list($err, $stdout) = $this->execManualLocal('svn find-rev HEAD'); | list($stdout) = $this->execxLocal('rev-parse HEAD'); | ||||
| if (!$err && $stdout) { | |||||
| return rtrim($stdout, "\n"); | return rtrim($stdout, "\n"); | ||||
| } | } | ||||
| return $this->getWorkingCopyRevision(); | |||||
| } | |||||
| public function isHistoryDefaultImmutable() { | public function isHistoryDefaultImmutable() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function supportsAmend() { | public function supportsAmend() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines | |||||
This comment has a TODO.