Add phab_review.sh which automates the creation and management of
Phabricator revisions from git format-patch files using arcanist (arc).
The script supports three commands:
- create: Creates revisions and automatically adds the 'Differential Revision:' tag to each patch file, then re-uploads the updated patch to Phabricator.
- update-diff-tag: Adds 'Differential Revision:' tag to a patch and re-uploads it to an existing revision.
- update-reviewed-by: Reads the 'Differential Revision:' URL from a patch, adds 'Reviewed by:' tag, re-uploads the patch, and adds the reviewer on Phabricator.
Prerequisites: arc (arcanist) configured with reviews.freebsd.org, jq.
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Change-Id: I2e502f38e1b1afaef9937eaaa5c1c7c2d28a239b