Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
Show First 20 Lines • Show All 2,415 Lines • ▼ Show 20 Lines | final protected function readStdin() { | ||||
while ($stdin->update()) { | while ($stdin->update()) { | ||||
PhutilChannel::waitForAny(array($stdin)); | PhutilChannel::waitForAny(array($stdin)); | ||||
} | } | ||||
return $stdin->read(); | return $stdin->read(); | ||||
} | } | ||||
protected function getAbsoluteURI($raw_uri) { | |||||
// TODO: "ArcanistRevisionRef", at least, may return a relative URI. | |||||
// If we get a relative URI, guess the correct absolute URI based on | |||||
// the Conduit URI. This might not be correct for Conduit over SSH. | |||||
$raw_uri = new PhutilURI($raw_uri); | |||||
if (!strlen($raw_uri->getDomain())) { | |||||
$base_uri = $this->getConduitEngine() | |||||
->getConduitURI(); | |||||
$raw_uri = id(new PhutilURI($base_uri)) | |||||
->setPath($raw_uri->getPath()); | |||||
} | |||||
$raw_uri = phutil_string_cast($raw_uri); | |||||
return $raw_uri; | |||||
} | |||||
} | } |