Move DifferentialRevision to application PHIDs
Summary: Ref T2715. Test Plan: Used `phid.lookup` and `phid.query` to load handles. Grepped for `PHID_TYPE_DREV`. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2715 Differential Revision: https://secure.phabricator.com/D6509
This commit is contained in:
@@ -70,7 +70,7 @@ final class PhabricatorSearchSelectController
|
||||
case PhabricatorPHIDConstants::PHID_TYPE_TASK:
|
||||
$pattern = '/\bT(\d+)\b/i';
|
||||
break;
|
||||
case PhabricatorPHIDConstants::PHID_TYPE_DREV:
|
||||
case DifferentialPHIDTypeRevision::TYPECONST:
|
||||
$pattern = '/\bD(\d+)\b/i';
|
||||
break;
|
||||
case PhabricatorPHIDConstants::PHID_TYPE_MOCK:
|
||||
@@ -94,7 +94,7 @@ final class PhabricatorSearchSelectController
|
||||
}
|
||||
|
||||
switch ($this->type) {
|
||||
case PhabricatorPHIDConstants::PHID_TYPE_DREV:
|
||||
case DifferentialPHIDTypeRevision::TYPECONST:
|
||||
$objects = id(new DifferentialRevision())->loadAllWhere(
|
||||
'id IN (%Ld)',
|
||||
$object_ids);
|
||||
|
||||
Reference in New Issue
Block a user