Page MenuHomePhabricator

D21056.id.diff
No OneTemporary

D21056.id.diff

diff --git a/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php b/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
@@ -840,6 +840,13 @@
$seen[$target_identifier] = true;
+ // See PHI1688. If this commit is already marked as unreachable, we don't
+ // need to consider its ancestors. This may skip a lot of work if many
+ // branches with a lot of shared ancestry are deleted at the same time.
+ if ($target->isUnreachable()) {
+ continue;
+ }
+
try {
$stream->getCommitDate($target_identifier);
$reachable = true;

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 4:00 AM (14 h, 20 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6807708
Default Alt Text
D21056.id.diff (799 B)

Event Timeline