From 3dd12e7cc6e756def05d9ec2583cd0dd83884828 Mon Sep 17 00:00:00 2001 From: tuomaspelkonen Date: Tue, 24 May 2011 16:02:53 -0700 Subject: [PATCH] Changed 'diffusion.getrecentcommitsbypath' to return only the direct and child changes. Summary: It was incorrectly returning copies. Test Plan: Tested that the conduit call for 'tfb/trunk/www/last_min_rev.txt' matches https://phabricator.fb.com/diffusion/E/history/tfb/trunk/www/last_min_rev.txt Reviewed By: jungejason Reviewers: jungejason, epriestley, aran CC: aran, jungejason Differential Revision: 340 --- .../ConduitAPI_diffusion_getrecentcommitsbypath_Method.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/conduit/method/diffusion/getrecentcommitsbypath/ConduitAPI_diffusion_getrecentcommitsbypath_Method.php b/src/applications/conduit/method/diffusion/getrecentcommitsbypath/ConduitAPI_diffusion_getrecentcommitsbypath_Method.php index 335e106f0f..0bafc2aaa2 100644 --- a/src/applications/conduit/method/diffusion/getrecentcommitsbypath/ConduitAPI_diffusion_getrecentcommitsbypath_Method.php +++ b/src/applications/conduit/method/diffusion/getrecentcommitsbypath/ConduitAPI_diffusion_getrecentcommitsbypath_Method.php @@ -50,6 +50,8 @@ class ConduitAPI_diffusion_getrecentcommitsbypath_Method ) ) ->setLimit(self::RESULT_LIMIT) + ->needDirectChanges(true) + ->needChildChanges(true) ->loadHistory(); $raw_commit_identifiers = mpull($history, 'getCommitIdentifier');