1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

include revision id in getdiff conduit call

Summary:
we need to know the revision id in order to generate
differential links.  It would be amazing if there existed some library
for object <-> network call mapping, and we could get all the
information about an object given some unique ID rather than having to
create a dictionary manually.  One can dream...

Test Plan:
1. setup on test phabricator instance
2. called differential.getdiff from client code with a valid diffid
3. verified that the correct revisionID was included

Reviewed By: epriestley
Reviewers: epriestley
CC: dpepper, aran, epriestley, mgummelt
Differential Revision: 795
This commit is contained in:
mgummelt 2011-08-09 15:02:17 -07:00
parent b8e08f34f7
commit d3b8389256

View file

@ -79,6 +79,7 @@ class ConduitAPI_differential_getdiff_Method extends ConduitAPIMethod {
$dict = array(
'id' => $diff->getID(),
'parent' => $diff->getParentRevisionID(),
'revisionID' => $diff->getRevisionID(),
'sourceControlBaseRevision' => $diff->getSourceControlBaseRevision(),
'sourceControlPath' => $diff->getSourceControlPath(),
'changes' => array(),