Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistMercurialAPI.php
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | if ($this->isHgSubversionRepo() && | ||||
| preg_match('/@([0-9]+)$/', $string, $match)) { | preg_match('/@([0-9]+)$/', $string, $match)) { | ||||
| $string = hgsprintf('svnrev(%s)', $match[1]); | $string = hgsprintf('svnrev(%s)', $match[1]); | ||||
| } | } | ||||
| list($stdout) = $this->execxLocal( | list($stdout) = $this->execxLocal( | ||||
| 'log -l 1 --template %s -r %s --', | 'log -l 1 --template %s -r %s --', | ||||
| '{node}', | '{node}', | ||||
| $string); | $string); | ||||
| return $stdout; | return $stdout; | ||||
| } | } | ||||
| public function getHashFromFromSVNRevisionNumber($revision_id) { | public function getHashFromFromSVNRevisionNumber($revision_id) { | ||||
| $matches = array(); | $matches = array(); | ||||
| $string = hgsprintf('svnrev(%s)', $revision_id); | $string = hgsprintf('svnrev(%s)', $revision_id); | ||||
| list($stdout) = $this->execxLocal( | list($stdout) = $this->execxLocal( | ||||
| 'log -l 1 --template %s -r %s --', | 'log -l 1 --template %s -r %s --', | ||||
| ▲ Show 20 Lines • Show All 1,135 Lines • Show Last 20 Lines | |||||