mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Remove a check for closing revisions
Summary: I ran into a case where a commit isn't "new" but hasn't been closed. I think the check on the status of the differential revision should be enough and this check isn't needed. Test Plan: used the reparse.php script to close a revision that previously wouldn't close. Reviewers: epriestley, vrana Reviewed By: vrana CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3232
This commit is contained in:
parent
4eebd545ce
commit
62b3e4aea3
1 changed files with 1 additions and 3 deletions
|
@ -106,7 +106,6 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker
|
|||
DifferentialRevision::TABLE_COMMIT,
|
||||
$revision->getID(),
|
||||
$commit->getPHID());
|
||||
$commit_is_new = $conn_w->getAffectedRows();
|
||||
|
||||
$committer_phid = $data->getCommitDetail('committerPHID');
|
||||
if ($committer_phid) {
|
||||
|
@ -142,8 +141,7 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker
|
|||
$revision->getAuthorPHID());
|
||||
|
||||
$status_closed = ArcanistDifferentialRevisionStatus::CLOSED;
|
||||
$should_close = $commit_is_new &&
|
||||
($revision->getStatus() != $status_closed) &&
|
||||
$should_close = ($revision->getStatus() != $status_closed) &&
|
||||
$repository->shouldAutocloseCommit($commit, $data);
|
||||
|
||||
if ($should_close) {
|
||||
|
|
Loading…
Reference in a new issue