From 89747c0ea46e3b486e1fb72a32e05c6531459d54 Mon Sep 17 00:00:00 2001 From: Mohamed Fawzy Date: Fri, 3 May 2013 08:12:43 -0700 Subject: [PATCH] Return the changeset ID as part of the changeset dict Summary: getDiffDict method returns the JSON for the changesets in a diff The JSON descriping a changeset didn't containt the changeset ID in some scenarios, knowing the changeset ID is really useful for the clients.(i.e. when you want to open a standalone view of the changeset, you need to know its ID) Test Plan: existing Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5816 --- src/applications/differential/storage/DifferentialDiff.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/differential/storage/DifferentialDiff.php b/src/applications/differential/storage/DifferentialDiff.php index 1acf8f5508..f0eac81935 100644 --- a/src/applications/differential/storage/DifferentialDiff.php +++ b/src/applications/differential/storage/DifferentialDiff.php @@ -219,6 +219,7 @@ final class DifferentialDiff extends DifferentialDAO { ); } $change = array( + 'id' => $changeset->getID(), 'metadata' => $changeset->getMetadata(), 'oldPath' => $changeset->getOldFile(), 'currentPath' => $changeset->getFilename(),