HomePhabricator

Repositories - Move scripts/repository/reparse.php to bin/repository reparse

Description

Repositories - Move scripts/repository/reparse.php to bin/repository reparse

Summary:
Fixes T5966. Accomplishes a few things

  • see title
  • adds a force-autoclose flag and the plumbing for it
  • removes references to some HarborMaster thing that used to key off commits and seems long dead, but forgotten :/

Test Plan:
ran a few commands. These first three had great success:

./repository reparse --all FIRSTREPO --message --change --herald --owners
./repository reparse --all FIRSTREPO --message --change --herald --owners --min-date yesterday
./repository reparse --all FIRSTREPO --message --change --herald --owners --min-date yesterday --force-autoclose

...and these next two showed me some errors as expected:

./repository reparse --all FIRSTREPO --message --change --herald --owners --min-date garbagedata
./repository reparse --all GARBAGEREPO --message --change --herald --owners

Also, made a diff in a repository with autoclose disabled and commited the diff. Later, reparse the diff with force-autoclose. Verified the diff closed and that the reason "why" had the proper message text.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: joshuaspence, epriestley, Korvin

Maniphest Tasks: T5966

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