]> khamidou — GitHub mirrors - arcanist.git/commit
Dispatch an event in arc land right before pushing a revision
authorAlok Menghrajani <amenghra@fb.com>
Sat, 9 Mar 2013 02:32:36 +0000 (18:32 -0800)
committerAlok Menghrajani <amenghra@fb.com>
Sat, 9 Mar 2013 02:32:36 +0000 (18:32 -0800)
commit7bf26484fb96128ac588919a80e3a95984fa9687
tree097c0cc5269f4be77fa2e14d7b8248690b632ce8
parent955bfb55815fc9bf68888b7e2114ea4aa4efa1e7
Dispatch an event in arc land right before pushing a revision

Summary: I looked at the pros & cons at adding hooks in git/hg vs arc land and I prefer arc land.

Test Plan:
* added an event listener and made sure I could handle the event.
* made sure things get reverted when the event handler throws an exception.

Reviewers: vrana, epriestley, pieter

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5268
src/events/constant/ArcanistEventType.php
src/workflow/ArcanistLandWorkflow.php