Changeset View
Changeset View
Standalone View
Standalone View
src/land/engine/ArcanistMercurialLandEngine.php
Context not available. | |||||
$api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
foreach ($onto_refs as $onto_ref) { | foreach ($onto_refs as $onto_ref) { | ||||
if (!strlen($onto_ref)) { | if (!@strlen($onto_ref)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Selected "onto" ref "%s" is invalid: the empty string is not '. | 'Selected "onto" ref "%s" is invalid: the empty string is not '. | ||||
Context not available. | |||||
$commits = phutil_split_lines($commits, false); | $commits = phutil_split_lines($commits, false); | ||||
$is_first = true; | $is_first = true; | ||||
foreach ($commits as $line) { | foreach ($commits as $line) { | ||||
if (!strlen($line)) { | if (!@strlen($line)) { | ||||
continue; | continue; | ||||
} | } | ||||
$parts = explode('-', $line, 3); | $parts = @explode('-', $line, 3); | ||||
if (count($parts) < 3) { | if (count($parts) < 3) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
Context not available. | |||||
if (!isset($commit_map[$hash])) { | if (!isset($commit_map[$hash])) { | ||||
$parents = $parts[1]; | $parents = $parts[1]; | ||||
$parents = trim($parents); | $parents = trim($parents); | ||||
if (strlen($parents)) { | if (@strlen($parents)) { | ||||
$parents = explode(' ', $parents); | $parents = @explode(' ', $parents); | ||||
} else { | } else { | ||||
$parents = array(); | $parents = array(); | ||||
} | } | ||||
Context not available. | |||||
$child_hashes = phutil_split_lines($output, false); | $child_hashes = phutil_split_lines($output, false); | ||||
foreach ($child_hashes as $child_hash) { | foreach ($child_hashes as $child_hash) { | ||||
if (!strlen($child_hash)) { | if (!@strlen($child_hash)) { | ||||
continue; | continue; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0