mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-12 18:02:39 +01:00
8bb81217d5
Summary: Ref T11968. Continue bringing modern yield-based hardpoint code into "master" in the parallel "Pro" classtree. Adds "working-copy(commit-hash)" as an inspectable ref. Test Plan: Inspected working copy refs, saw them resolve revisions by commit hash and commit message. Maniphest Tasks: T11968 Differential Revision: https://secure.phabricator.com/D21079
25 lines
403 B
PHP
25 lines
403 B
PHP
<?php
|
|
|
|
final class ArcanistObjectListHardpoint
|
|
extends ArcanistHardpoint {
|
|
|
|
public function isVectorHardpoint() {
|
|
return true;
|
|
}
|
|
|
|
public function mergeHardpointValues(
|
|
ArcanistHardpointObject $object,
|
|
$old,
|
|
$new) {
|
|
|
|
foreach ($new as $item) {
|
|
$phid = $item->getPHID();
|
|
if (!isset($old[$phid])) {
|
|
$old[$phid] = $item;
|
|
}
|
|
}
|
|
|
|
return $old;
|
|
}
|
|
|
|
}
|