Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistGitAPI.php
| Show First 20 Lines • Show All 529 Lines • ▼ Show 20 Lines | final class ArcanistGitAPI extends ArcanistRepositoryAPI { | ||||
| } | } | ||||
| public function getCanonicalRevisionName($string) { | public function getCanonicalRevisionName($string) { | ||||
| $match = null; | $match = null; | ||||
| if (preg_match('/@([0-9]+)$/', $string, $match)) { | if (preg_match('/@([0-9]+)$/', $string, $match)) { | ||||
| $stdout = $this->getHashFromFromSVNRevisionNumber($match[1]); | $stdout = $this->getHashFromFromSVNRevisionNumber($match[1]); | ||||
| } else { | } else { | ||||
| list($stdout) = $this->execxLocal( | list($stdout) = $this->execxLocal( | ||||
| 'show -s --format=%s %s --', | phutil_is_windows() | ||||
| ? 'show -s --format=%C %s --' | |||||
| : 'show -s --format=%s %s --', | |||||
| '%H', | '%H', | ||||
| $string); | $string); | ||||
| } | } | ||||
| return rtrim($stdout); | return rtrim($stdout); | ||||
| } | } | ||||
| private function executeSVNFindRev($input, $vcs) { | private function executeSVNFindRev($input, $vcs) { | ||||
| $match = array(); | $match = array(); | ||||
| ▲ Show 20 Lines • Show All 671 Lines • Show Last 20 Lines | |||||