From 375400802b7d3293469ec97bba4e8c524803d75f Mon Sep 17 00:00:00 2001 From: vrana Date: Tue, 14 Aug 2012 17:44:15 -0700 Subject: [PATCH] Register commits as Diffusion fact objects Summary: We will need to process them. Maybe it will fit better in Repository application but we don't have it yet. Test Plan: $ ./fact cursors Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin, royw Differential Revision: https://secure.phabricator.com/D3287 --- .../application/PhabricatorApplicationDiffusion.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/applications/diffusion/application/PhabricatorApplicationDiffusion.php b/src/applications/diffusion/application/PhabricatorApplicationDiffusion.php index e05a480121..0051166bfe 100644 --- a/src/applications/diffusion/application/PhabricatorApplicationDiffusion.php +++ b/src/applications/diffusion/application/PhabricatorApplicationDiffusion.php @@ -34,6 +34,12 @@ final class PhabricatorApplicationDiffusion extends PhabricatorApplication { return PhabricatorEnv::getDoclink('article/Diffusion_User_Guide.html'); } + public function getFactObjectsForAnalysis() { + return array( + new PhabricatorRepositoryCommit(), + ); + } + public function getRoutes() { return array( '/r(?P[A-Z]+)(?P[a-z0-9]+)'