Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistMercurialAPI.php
| Show First 20 Lines • Show All 896 Lines • ▼ Show 20 Lines | public function getActiveBookmark() { | ||||
| if (!$bookmark) { | if (!$bookmark) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return $bookmark->getName(); | return $bookmark->getName(); | ||||
| } | } | ||||
| public function getRemoteURI() { | public function getRemoteURI() { | ||||
| // TODO: Remove this method in favor of RemoteRefQuery. | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
| list($stdout) = $this->execxLocal('paths default'); | list($stdout) = $this->execxLocal('paths default'); | ||||
| $stdout = trim($stdout); | $stdout = trim($stdout); | ||||
| if (strlen($stdout)) { | if (strlen($stdout)) { | ||||
| return $stdout; | return $stdout; | ||||
| } | } | ||||
| return null; | return null; | ||||
| ▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | return array( | ||||
| ArcanistMarkerRef::TYPE_BOOKMARK, | ArcanistMarkerRef::TYPE_BOOKMARK, | ||||
| ); | ); | ||||
| } | } | ||||
| protected function newMarkerRefQueryTemplate() { | protected function newMarkerRefQueryTemplate() { | ||||
| return new ArcanistMercurialRepositoryMarkerQuery(); | return new ArcanistMercurialRepositoryMarkerQuery(); | ||||
| } | } | ||||
| protected function newRemoteRefQueryTemplate() { | |||||
| return new ArcanistMercurialRepositoryRemoteQuery(); | |||||
| } | |||||
| } | } | ||||
This comment has a TODO.