Homec4science

Fix a Herald issue where testing commits against rules with revision-related…

Authored by epriestley <git@epriestley.com> on Sep 9 2016, 01:08.

Description

Fix a Herald issue where testing commits against rules with revision-related conditions would fail

Summary:
Fixes T11610. Clean up some sketchy old code from long ago.

If you had rules that use conditions like "Accepted revision exists" and ran them in the test console, we'd never load the "CommitData" and fatal.

Instead, load CommitData in newTestAdapter() and generally make these pathways a little more modern.

Test Plan:

  • Wrote an "Accepted Revision Exists" rule.
  • Ran a commit in the test console.
  • Before patch, got fatal from T11610.
  • After patch, got clean test result.
  • Also pushed a commit and reviewed the transcript to make sure the rule ran properly.

Reviewers: joshuaspence, chad

Reviewed By: chad

Maniphest Tasks: T11610

Differential Revision: https://secure.phabricator.com/D16522

Details

Committed
epriestley <git@epriestley.com>Sep 9 2016, 02:16
Pushed
aubortJan 31 2017, 17:16
Parents
rPH17cd119b91a5: Add inline styles for `{key ...}` in HTML mail
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH8d048f06ab51: Fix a Herald issue where testing commits against rules with revision-related… (authored by epriestley <git@epriestley.com>).Sep 9 2016, 02:16