Summary:
FB currently starts Sandcastle push before starting the diff workflow.
If `arc diff` commits something then we need to restart the push.
I want to avoid this by starting the push after commit.
Test Plan: Will test after implementing the listener.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4785
const TYPE_COMMIT_WILLCOMMITSVN = 'commit.willCommitSVN';
+ const TYPE_DIFF_DIDCOLLECTCHANGES = 'diff.didCollectChanges';
const TYPE_DIFF_WILLBUILDMESSAGE = 'diff.willBuildMessage';
const TYPE_DIFF_DIDBUILDMESSAGE = 'diff.didBuildMessage';
const TYPE_DIFF_WASCREATED = 'diff.wasCreated';
}
}
}
+
+ $this->dispatchEvent(
+ ArcanistEventType::TYPE_DIFF_DIDCOLLECTCHANGES,
+ array());
}
private function buildRevisionFromCommitMessage(