mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Only revert commits in the same repository
Summary: Fixes T8215. When adding a revert edge, only consider commits within the same repository. Test Plan: Imported the arcanist repository three times and inspected the reverts relationships on rARC490984936bb7ddfc589ef3d376ec2ac2365f070d. Reviewers: hach-que, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T8215 Differential Revision: https://secure.phabricator.com/D12875
This commit is contained in:
parent
a527d6c340
commit
79e8d9fc2d
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ final class PhabricatorRepositoryCommitHeraldWorker
|
|||
if ($reverts) {
|
||||
$reverted_commits = id(new DiffusionCommitQuery())
|
||||
->setViewer(PhabricatorUser::getOmnipotentUser())
|
||||
->withRepository($repository)
|
||||
->withIdentifiers($reverts)
|
||||
->execute();
|
||||
$reverted_commit_phids = mpull($reverted_commits, 'getPHID', 'getPHID');
|
||||
|
|
Loading…
Reference in a new issue