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:
epriestley
2013-07-21 08:11:37 -07:00
parent 5ca419174a
commit 1fb39a20d3
18 changed files with 104 additions and 55 deletions

View File

@@ -8,7 +8,7 @@ foreach (new LiskMigrationIterator($table) as $rev) {
$id = $rev->getID();
echo "Revision {$id}: ";
$deps = $rev->getAttachedPHIDs(PhabricatorPHIDConstants::PHID_TYPE_DREV);
$deps = $rev->getAttachedPHIDs(DifferentialPHIDTypeRevision::TYPECONST);
if (!$deps) {
echo "-\n";
continue;

View File

@@ -8,7 +8,7 @@ foreach (new LiskMigrationIterator($table) as $task) {
$id = $task->getID();
echo "Task {$id}: ";
$revs = $task->getAttachedPHIDs(PhabricatorPHIDConstants::PHID_TYPE_DREV);
$revs = $task->getAttachedPHIDs(DifferentialPHIDTypeRevision::TYPECONST);
if (!$revs) {
echo "-\n";
continue;