Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistSubversionAPI.php
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | final class ArcanistSubversionAPI extends ArcanistRepositoryAPI { | ||||
} | } | ||||
public function getSourceControlBaseRevision() { | public function getSourceControlBaseRevision() { | ||||
$info = $this->getSVNInfo('/'); | $info = $this->getSVNInfo('/'); | ||||
return $info['URL'].'@'.$this->getSVNBaseRevisionNumber(); | return $info['URL'].'@'.$this->getSVNBaseRevisionNumber(); | ||||
} | } | ||||
public function getCanonicalRevisionName($string) { | public function getCanonicalRevisionName($string) { | ||||
throw new ArcanistCapabilityNotSupportedException($this); | // TODO: This could be more accurate, but is only used by `arc browse` | ||||
// for now. | |||||
if (is_numeric($string)) { | |||||
return $string; | |||||
} | |||||
return null; | |||||
} | } | ||||
public function getSVNBaseRevisionNumber() { | public function getSVNBaseRevisionNumber() { | ||||
if ($this->svnBaseRevisionNumber) { | if ($this->svnBaseRevisionNumber) { | ||||
return $this->svnBaseRevisionNumber; | return $this->svnBaseRevisionNumber; | ||||
} | } | ||||
$info = $this->getSVNInfo('/'); | $info = $this->getSVNInfo('/'); | ||||
return $info['Revision']; | return $info['Revision']; | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |